Part Number Hot Search : 
STN1NK80 ITR8403 25100 74AC1 EBAWU0 BC807 AHV2011 25100
Product Description
Full Text Search
 

To Download KSZ8463MLI-EVAL Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ksz8463ml/rl/fml/frl ieee 1588 precision time protocol - enabled, three - port, 10/100 - managed switch with mii or rmii revision 1.0 ethersynch is a trademark of micrel, inc. linkmd is a registered trademark of micrel, inc. micrel inc. ? 2180 fortune drive ? san jose, ca 95131 ? usa ? tel +1 (408) 944 - 0800 ? fax + 1 (408) 474 - 1000 ? http://www.micrel.com june 11, 2014 revision 1.0 general description the ksz8463 ethersynch ? product line consists of ieee 1588v2 enabled ethernet switches, providing integrated communications and synchronization for a range of industrial ethernet applications. the ksz8463 ethersynch product line enables distributed, daisy - chained topologies preferred for industrial ethernet networks. conventional centralized (i.e., star - wired) topologies are also supported for dual - homed, fault - tolerant arrangements. a flexible set of standard mac interfaces is provided to interface to external host processors with embedded ethernet macs: ? ksz8463ml: media independent interface (mii) ? ksz8463rl: reduced media independent interface (rmii) ? ksz8463fml : mii, supports 100 base - fx fiber in addition to 10/100 base - tx copper ? ksz8463frl: rmii, supports 100 base - fx fiber in addition to 10/100 base - tx copper the ksz8463 devices incorporate the ieee 1588v2 protocol. sub - microsecond synchronization is available via the use of hardware - based time - stamping and transparent clocks making it the ideal solution for time synchronized layer 2 communication in critical industrial applications. extensive general purpose i/o ( gpio ) capabilities are available to use with the i eee 1588v2 ptp to efficiently and accurately interface to locally connected devices. complementing the industry?s most - integrated ieee 1588v2 device is a precision timing protocol (ptp) v2 software stack that has been pre - qualified with the ksz84xx product family. the ptp stack has been optimized around the ksz84xx chip architecture, and is available in source code format along with micrel?s chip driver. ethersynch ? the ksz8463 product line is built upon micrel?s industry - leading ethernet technology, w ith features designed to offload host processing and streamline your overall design. ? wire - speed ethernet switching fabric with extensive filtering ? two integrated 10/100 base - tx phy t ransceivers , featuring the industry?s lowest power consumption ? full - featured quality - of - service (qos) support ? flexible management options that support common standard interfaces the wire - speed, store - and- forward switching fabric provides a full complement of qos and congestion control features optimized for real - time ethernet. a robust assortment of power - management features including energy - efficient ethernet (eee) have been designed in to satisfy energy efficient environments. datasheets and support documentation are available on micrel?s web site at: www.micrel.com . functional diagram
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 2 revision 1.0 functional diagram ksz8463ml/rl/fml/frl functional diagram
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 3 revision 1.0 features management capabilities ? the ksz8463ml/rl/fml/frl includes all the functions of a 10/100 base - t/tx/fx switch system which combines a switch engine, frame buffer management, address look - up table, queue management, mib counters, media access controllers (mac) and phy transceivers ? no n - bl ocking store - and - forward switch fabric assures fast packet delivery by utilizing 1024 entry forwarding table ? port mirroring/monitoring/sniffing: ingress and/or egress traffic to any port ? mib counters for fully - compliant statistics gathering ? 34 counters per port ? loopback modes for remote failure diagnostics ? rapid spanning tree protocol support (rstp) for topology management and ring/linear recovery ? bypass mode, which ensure continuity even when a host is disabled or fails robust phy ports ? two i ntegrated ieee 802.3/802.3u - compliant ethernet transceivers supporting 10 base - t and 100 base - tx ? copper and 100 base - fx fiber mode support in the ksz8463fml and ksz8463frl ? copper mode support in the ksz8463ml and ksz8463rl ? on - chip termination resistors and internal bi asing for differential pairs to reduce power ? hp auto mdi/mdi - x crossover support eliminating the need to differentiate between straight or crossover cables in applications mac ports ? three internal media access control (mac) units ? mii or rmii interface support on mac port 3 ? 2kb yte jumbo packet support ? tail tagging mode (one byte added before fcs) s upport at port 3 to inform the processor which ingress port receives the packet and its priority ? support s reduced media independent interface (rmii) with 50 mhz reference clock input or output ? support media independent interface (mii) in either phy mode or mac mode on port 3 ? programmable mac addresses for port 1 and port 2 and self - address filtering support ? mac filtering functio n to filter or forward unknown u nicast packets ? port 1 and port 2 macs programmable as either e2e or p2p transparent clock (tc) ports for 1588 support ? port 3 mac programmable as slave or master of ordinary clock (oc) port for 1588 support ? micrel linkmd ? cable diagnostic capabilities fo r determining cable opens, shorts, and length advanced switch capabilities ? non - blocking store - and - forward switch fabric assures fast packet delivery by utilizing 1024 entry forwarding table ? ieee 802.1q vlan for up to 16 groups with full range of vlan ids ? ieee 802. 1 p /q tag insertion or removal on a per port basis (egress) and support double - tagging ? vlan id tag/untag options on per port basis ? fully compliant with ieee 802.3/802.3u standards ? ieee 802.3x full - duplex with force - mode option and half - duplex backp ressure collision flow control ? ieee 802.1 w rapid spanning tree protocol support ? igmp v1/v2/v3 snooping for multicast packet filtering ? qos/cos packets prioritization suppo rt: 802.1p, diffserv - based and r e - mappi ng of 802.1p priority field per - port basis on f our priority levels ? ipv4/ipv6 qos support ? ipv 6 multicast listener discovery (mld) snooping support ? programmable rate limiting at the ingress and egress ports ? broadcast storm protection ? bypass mode to sustain the switch function between port 1 and port 2 when cpu ( port 3) goes in to sleep mode ? 1k entry forwarding table with 32k frame buffer ? four priority queues with dynamic packet mapping for ieee 802. 1p , ipv4 tos (diffserv), ipv6 traffic class, etc. ? source address filtering for implementing ring topolog ies
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 4 revision 1.0 comprehensive configuration registers access ? high - speed spi (4 - wire, up to 50 mhz) interface to access all internal registers ? mii management (miim, mdc/mdio 2 - wire) interface to access all phy registers per clause 22.2.4.5 of the ieee 802.3 specificat ion ? i/o pin s trapping facility to set certain register bits from i/o pins at reset time ? control registers configurable on - the - fly ieee 1588v2 ptp and clock synchronization ? full y compliant with the ieee 1588v2 precision time protocol ? one - step or two - step tr ansparent clock ( tc ) timing corrections ? e2e (end - to - end) or p2p (peer - to - peer) transparent clock (tc) ? grandmaster, master , slave , ordin ary clock (oc) support ? ieee1588v2 ptp m ulticast and unicast frame support ? transports of ptp over ipv4/ipv6 udp and ieee 802.3 ethernet ? delay request - response and peer delay mechanism ? ingress/egress packet timestamp capture/recording and checksum update ? correction field update with residence time and link delay ? ieee1588v2 ptp packet filtering unit to reduce host processor overhead ? a 64 - bit adjustable system precision clock ? twelve trigger output unit s and twelve timestamp input units available for flexible ieee1588v2 control of twelve programmable gpio[11 :0] pins synchronized to the precision time clock ? gpio pin usage for 1 pps generation, frequency generator, control bit streams, event monitoring, precision pulse generation, complex waveform generation power and power management ? single 3.3v power supply with optional vdd i/o for 1.8v, 2.5v or 3.3v ? i ntegrated low voltage ( ~1 .3v ) low - noise regulator (ldo) output for digital and analog core power ? supports ieee p802.3az ? energy - efficient ethernet (eee) to reduce power consumption in transceivers in lpi state ? full - chip hardware or software power - down (all registers value are not saved and strap - in value will r e - strap after release the power - down) ? energy dete ct power - down (edpd), which disables the phy transceiver when cables are removed ? dynamic clock tree control to reduce clocking in areas not in use ? power consumption less than 0.5w additional features ? single 25mhz 50ppm reference clock requirement for mii mode ? selectable 25mhz or 50mhz inputs for rmii mode ? comprehensive programmable two led indicators support for link, activity, full/half dupl ex and 10/100 speed . ? led pins directly controllable. ? industrial temperature range: ? 40 c to +85 c ? 64- pin (10mm x 10mm) lead free (rohs) lqfp package ? 0. 11m technology for lower power consumption applications ? industrial ethernet applications that employ i eee 802.3 - compliant macs. (ethernet/ip, profinet, modbus tcp, etc) ? real - time ethernet networks requiring sub - microsecond synchronization over standard ethernet ? iec 61850 networks supporting power substation automation ? networked measurement and control syst ems ? industrial automation and motion control systems ? test and measurement equipment
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 5 revision 1.0 ordering information part number temperature range package lead finish description ksz8463mli ? 40 o c to +85 o c 64- pin lqfp pb - free industrial temperature device with mii interface ksz8463fmli ? 40 o c to +85 o c 64- pin lqfp pb - free industrial temperature device with mii interface and fiber (100 base- fx) support ksz8463rli ? 40 o c to +85 o c 64- pin lqfp pb - free industrial temperature device with r mii interface ksz8463frli ? 40 o c to +85 o c 64- pin lqfp pb - free industrial temperature device with r mii interface and fiber (100 base- fx) support ksz8463mli -eval evaluation board with ksz8463mli . also supports ksz8463fmli, ksz8463rli and ksz8463frli. revision history revision date summary of changes 1.0 6/ 11 /14 initial release of product ? s. thompson
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 6 revision 1.0 contents list of figures ........................................................................................................................................................................ 15 list of tables ......................................................................................................................................................................... 16 acronyms .............................................................................................................................................................................. 17 pin configuration ................................................................................................................................................................... 20 pin description ...................................................................................................................................................................... 21 strapping options ................................................................................................................................................................. 27 functional description ........................................................................................................................................................... 28 physic al (phy) block ............................................................................................................................................................ 28 100base - tx transmit ...................................................................................................................................................... 28 100base - tx receive ....................................................................................................................................................... 28 scrambler/de - scrambler (100base - tx only) .................................................................................................................. 28 pll clock synthesizer (recovery) .................................................................................................................................... 28 100base - fx operation .................................................................................................................................................... 29 100base - fx signal detection .......................................................................................................................................... 29 100base - fx far - end fault .............................................................................................................................................. 29 10base - t transmit ........................................................................................................................................................... 29 10base - t r eceive ............................................................................................................................................................ 29 mdi/mdi - x auto crossover ............................................................................................................................................... 30 straight cable .................................................................................................................................................................... 30 crossover cable ................................................................................................................................................................ 31 auto - negotiation ................................................................................................................................................................ 31 linkmd ? cabl e diagnostics ............................................................................................................................................... 32 access ............................................................................................................................................................................ 32 usage ............................................................................................................................................................................. 32 on - chip termination resistors ......................................................................................................................................... 33 loopback support ............................................................................................................................................................. 33 far - end loopback ......................................................................................................................................................... 33 near - end (remote) loopback ....................................................................................................................................... 33 mac (media access controller) block .................................................................................................................................. 35 mac operation .................................................................................................................................................................. 35 address lookup ................................................................................................................................................................. 35 learning ............................................................................................................................................................................. 35 migration ............................................................................................................................................................................ 35 aging .................................................................................................................................................................................. 35 forwarding ......................................................................................................................................................................... 35 inter - packet gap (ipg) ...................................................................................................................................................... 37 back - off algorithm ............................................................................................................................................................ 37 late collision ..................................................................................................................................................................... 37 legal packet s ize .............................................................................................................................................................. 37 flow control ....................................................................................................................................................................... 38 half - duplex backpressure ................................................................................................................................................. 38 broadcast storm protection ............................................................................................................................................... 39 port individual mac address and source port filtering ................................................................................................... 39 switch block .......................................................................................................................................................................... 40 switching engine ............................................................................................................................................................... 40 spanning tree support ..................................................................................................................................................... 40 rapid spanning tree support ........................................................................................................................................... 41 discarding state ............................................................................................................................................................. 41 learning state ................................................................................................................................................................ 41 forwarding state ............................................................................................................................................................ 41 tail tagging mode ............................................................................................................................................................. 41 igmp support .................................................................................................................................................................... 42 ?igmp? snooping ........................................................................................................................................................... 42 ?multicast address insertion? in the static mac table .................................................................................................. 42 ipv6 mld snooping ........................................................................................................................................................... 42 port mirroring support ....................................................................................................................................................... 43
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 7 revision 1.0 ?recei ve only? mirror - on- a - port .................................................................................................................................... 43 ?transmit only? mirror - on- a - port ................................................................................................................................... 43 ?receive and transmit? mirror - on- two - ports ................................................................................................................ 43 ieee 802.1q vlan support .......................................................................................................................................... 43 quality - of - service (qos) priority support ......................................................................................................................... 44 port - based priority ............................................................................................................................................................ 44 802.1p - based priority ........................................................................................................................................................ 44 802.1p priority field re - mapping ...................................................................................................................................... 45 diffserv - based priority ...................................................................................................................................................... 45 rate limiting support ........................................................................................................................................................ 45 mac address filtering function ........................................................................................................................................ 46 ieee 1588 precision time protocol (ptp) block .................................................................................................................. 47 ieee 1588 ptp clock types ............................................................................................................................................. 48 ieee 1588 ptp one - step or two - step clock operation ................................................................................................. 48 ieee 1588 ptp best master clock selection ................................................................................................................... 48 ieee 1588 ptp system time cloc k ................................................................................................................................. 48 updating the system time clock ...................................................................................................................................... 50 directly setting or reading the time ............................................................................................................................. 50 step - time adjustment ................................................................................................................................................... 50 continuous time adjustment ......................................................................................................................................... 50 temporary time adjustment ......................................................................................................................................... 50 ptp clock initialization .................................................................................................................................................. 51 ieee 1588 ptp message processing ............................................................................................................................... 51 ieee 1588 ptp ingress packet processing .................................................................................................................. 51 ieee 1588 ptp egress packet processing ................................................................................................................... 51 ieee 1588 ptp event triggering and timestamping ....................................................................................................... 52 ieee 1588 ptp trigger output ..................................................................................................................................... 52 ieee 1588 ptp event timestamp input ........................................................................................................................ 52 ieee 1588 ptp event interrupts ................................................................................................................................... 53 ieee 1588 gpio ............................................................................................................................................................ 53 general purpose and ieee 1588 input/output (gpio) ........................................................................................................ 54 overview ............................................................................................................................................................................ 54 gpio pin functionali ty control .......................................................................................................................................... 54 gpio pin control register layout ..................................................................................................................................... 55 gpio trigger output unit and timestamp unit interrupts ................................................................................................ 57 using the gpio pins with the trigger output units .............................................................................................................. 59 creating a low - going pulse at a specific time ................................................................................................................ 59 creating a high - going pulse at a specific time ............................................................................................................... 59 creating a free running clock source ............................................................................................................................. 60 creating finite length periodic bit streams at a specific time ........................................................................................ 61 creating finite length non - unifo rm bit streams at a specific time ................................................................................ 61 creating complex waveforms at a specific time ............................................................................................................. 62 using the gpio pins with the timestamp input units .......................................................................................................... 64 device clocks ........................................................................................................................................................................ 66 gpio and ieee 1588 - related clocking ............................................................................................................................ 67 power .................................................................................................................................................................................... 68 internal low voltage ldo regulator ................................................................................................................................. 69 power management .............................................................................................................................................................. 70 normal operation mode .................................................................................................................................................... 70 energy - detect mode .......................................................................................................................................................... 70 global sof t power - down mode ......................................................................................................................................... 71 energy - efficient ethernet (eee) ........................................................................................................................................ 71 transmit direction control for mii mode ........................................................................................................................... 72 receive direction control for mii mode ............................................................................................................................ 72 registers associated with eee ......................................................................................................................................... 72 interrupt generation on power management - related events .............................................................................................. 72 interfaces ............................................................................................................................................................................... 73
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 8 revision 1.0 configuration interface ...................................................................................................................................................... 73 spi slave serial bus configuration ................................................................................................................................... 73 spi register access operation timing ............................................................................................................................. 74 mii management (miim) interface ..................................................................................................................................... 76 media independent interface (mii) .................................................................................................................................... 76 reduced media independent interface (rmii) .................................................................................................................. 78 device registers ................................................................................................................................................................... 80 register map of cpu accessible i/o registers .................................................................................................................... 82 i/o registers ...................................................................................................................................................................... 82 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) ...................................... 82 internal i/o register space mapping for interrupts and global reset (0x100 ? 0x1ff) .............................................. 88 internal i/o register space mapping for ptp trigger output (12 units, 0x200 ? 0x3ff) ............................................ 89 internal i/o register space mapping for ptp timestamp inputs (12 units, 0x400 ? 0x5ff) ....................................... 98 internal i/o register space mapping for ptp 1588 clock and glo bal control (0x600 ? 0x7ff) ............................... 110 register bit definitions ........................................................................................................................................................ 114 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) ....................................... 114 chip id and enable register (0x000 ? 0x001): cider ............................................................................................... 114 switch global control register 1 (0x002 ? 0x003): sgcr1 ........................................................................................... 114 switch global control register 2 (0x004 ? 0x005): sgcr2 ........................................................................................... 116 switch global control register 3 (0x006 ? 0x007): sgcr3 ........................................................................................... 117 0x008 ? 0x00b: reserved ............................................................................................................................................... 117 switch global control register 6 (0x00c ? 0x00d): sgcr6 .......................................................................................... 118 switch global control register 7 (0x00e ? 0x00f): sgcr7 .......................................................................................... 119 mac address registers ...................................................................................................................................................... 120 mac address register 1 (0x010 ? 0x011): macar1 ..................................................................................................... 120 mac address register 2 (0x012 ? 0x013): macar2 ..................................................................................................... 120 mac address register 3 (0x014 ? 0x015): macar3 ..................................................................................................... 120 tos priority control registers ............................................................................................................................................ 121 tos priority control register 1 (0x016 ? 0x017): tosr1 .............................................................................................. 121 tos priority control register 2 (0x018 ? 0x019): tosr2 .............................................................................................. 122 tos priority control register 3 (0x01a ? 0x01b): tosr3 ............................................................................................. 123 tos priority control register 4 (0x01c ? 0x1d): tosr4 .............................................................................................. 123 tos priority control register 5 (0x01e ? 0x1f): tosr5 ............................................................................................... 124 tos priority control register 6 (0x020 ? 0x021 ): tosr6 .............................................................................................. 125 tos priority control register 7 (0x022 ? 0x023): tosr7 .............................................................................................. 125 tos priority control register 8 (0x024 ? 0x025): tosr8 .............................................................................................. 126 indirect access data registers ........................................................................................................................................... 127 indirect access data register 1 (0x026 ? 0x027): iadr1 .............................................................................................. 127 indirect access data register 2 (0x028 ? 0x029): iadr2 .............................................................................................. 127 indirect access data register 3 (0x02a ? 0x02b): iadr3 ............................................................................................. 127 indirect access data register 4 (0x02c ? 0x02d): iadr4 ............................................................................................. 127 indirect access data register 5 (0x02e ? 0x02f): iadr5 .............................................................................................. 128 indirect access control register (0x030 ? 0x031): iacr ............................................................................................... 128 power management control and wake - up event status ................................................................................................... 129 power management control and wake - up event status (0x032 ? 0x033): pmctrl ................................................... 129 (0x034 ? 0x035): reserved ............................................................................................................................................. 129 go sleep time and clock tree power - down control regist ers ........................................................................................ 130 go sleep time register (0x036 ? 0x037): gst .............................................................................................................. 130 clock tree power - down control register (0x038 ? 0x039): ctpdc ............................................................................. 130 0x03a ? 0x04b: reserved ............................................................................................................................................... 130
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 9 revision 1.0 ph y and mii basic control registers ................................................................................................................................. 131 phy 1 and mii basic control register (0x04c ? 0x04d): p1mbcr ............................................................................... 131 phy 1 and mii basic status register (0x04e ? 0x04f): p1mbsr ................................................................................. 132 phy 1 phyid low register (0x050 ? 0x051): phy1ilr ................................................................................................ 133 phy 1 phyid high register (0x052 ? 0x053): phy1ihr .............................................................................................. 133 phy 1 auto - negotiation advertisement register (0x054 ? 0x055): p1anar ................................................................ 134 phy 1 auto - negotiation link partner ability register (0x056 ? 0x057): p1anlpr ....................................................... 135 phy 2 and mii basic control register (0x058 ? 0x059): p2mbcr ................................................................................ 136 phy 2 and mii basic status register (0x05a ? 0x05b): p2mbsr ................................................................................. 137 phy 2 phyid low register (0x05c ? 0x05d): phy2ilr ............................................................................................... 138 phy 2 phyid high register (0x05e ? 0x05f): phy2ihr .............................................................................................. 138 phy 2 auto - negotiation advertisement register (0x060 ? 0x061): p2anar ................................................................ 139 phy 2 auto - negotiation link partner ability register (0x062 ? 0x063): p2anlpr ....................................................... 140 0x064 ? 0x065: reserved ................................................................................................................................................ 140 phy1 special control and status register (0x066 ? 0x067): p1phyctrl .................................................................. 141 0x068 ? 0x069: reserved ................................................................................................................................................ 141 phy 2 special control and status register (0x06a ? 0x06b): p2phyctrl ................................................................. 142 port 1 control registers ...................................................................................................................................................... 143 port 1 control register 1 (0x06c ? 0x06d): p1cr1 ....................................................................................................... 143 port 1 control register 2 (0x06e ? 0x06f): p1cr2 ........................................................................................................ 145 port 1 vid control register (0x070 ? 0x071): p1vidcr ................................................................................................ 146 port 1 control register 3 (0x072 ? 0x073): p1cr3 ........................................................................................................ 147 port 1 ingress rate control register 0 (0x074 ? 0x075): p1ircr0 ............................................................................... 147 port 1 ingress rate control register 1 ( 0x076 ? 0x077): p1ircr1 ............................................................................... 148 port 1 egress rate control register 0 (0x078 ? 0x079): p1ercr0 .............................................................................. 149 port 1 egress rate control register 1 (0x07a ? 0x07b): p1ercr1 ............................................................................. 149 port 1 phy special control/status, linkmd (0x07c ? 0x07d): p1scslmd .................................................................. 150 port 1 control registe r 4 (0x07e ? 0x07f): p1cr4 ........................................................................................................ 150 port 1 status register (0x080 ? 0x081): p1sr ............................................................................................................... 152 0x082 ? 0x083: reserved ................................................................................................................................................ 153 port 2 control registers ...................................................................................................................................................... 154 port 2 control register 1 (0x084 ? 0x085): p2cr1 ........................................................................................................ 154 port 2 control register 2 (0x086 ? 0x087): p2cr2 ........................................................................................................ 155 port 2 vid control register (0x088 ? 0x089): p2vidcr ................................................................................................ 157 port 2 control register 3 (0x08a ? 0x08b): p2cr3 ....................................................................................................... 157 port 2 ingress rate control register 0 (0x08c ? 0x08d): p2ircr0 .............................................................................. 158 port 2 ingress rate control register 1 ( 0x08e ? 0x08f): p2ircr1 .............................................................................. 158 port 2 egress rate control register 0 (0x090 ? 0x091): p2ercr0 .............................................................................. 159 port 2 egress rate control register 1 (0x092 ? 0x093): p2ercr1 .............................................................................. 159 port 2 phy special control/status, linkmd ? (0x094 ? 0x095): p2scslmd ................................................................. 160 port 2 control register 4 (0x096 ? 0x097): p2cr4 ........................................................................................................ 160 port 2 status register (0x098 ? 0x 099): p2sr ............................................................................................................... 162 0x09a ? 0x09b: reserved ............................................................................................................................................... 163 port 3 control registers ...................................................................................................................................................... 164 po rt 3 control register 1 (0x09c ? 0x09d): p3cr1 ....................................................................................................... 164 port 3 control register 2 (0x09e ? 0x09f): p3cr2 ........................................................................................................ 165 port 3 vid control register (0x0a0 ? 0x0a1): p3vidcr ............................................................................................... 166 port 3 control register 3 (0x0a2 ? 0x0a3): p3cr3 ....................................................................................................... 167 port 3 ingress rate control register 0 (0x0a4 ? 0x0a5): p3ircr0 .............................................................................. 168 port 3 ingress rate control register 1 ( 0x0a6 ? 0x0a7): p3ircr1 .............................................................................. 168 port 3 egress rate control register 0 (0x0a8 ? 0x0a9): p3ercr0 ............................................................................. 169 port 3 egress rate control register 1 (0x0aa ? 0x0ab): p3ercr1 ............................................................................. 169 switch global control registers ......................................................................................................................................... 170 switch global control register 8 (0x0ac ? 0x0ad): sgcr8 ......................................................................................... 170 switch global control register 9 (0x0ae ? 0x0af): sgcr9 ......................................................................................... 171
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 10 revision 1.0 source address filtering mac address registers ............................................................................................................. 172 source address filtering mac address 1 register low (0x0b0 ? 0x0b1): safmaca1l ............................................. 172 source address filtering mac address 1 register middle (0x0b2 ? 0x0b3): safmaca1m ........................................ 172 source address filtering mac address 1 register high (0x0b4 ? 0x0b5): safmaca1h ............................................ 172 source address filtering mac address 2 register low (0x0b6 ? 0x0b7): safmaca2l ............................................. 172 source address filtering mac address 2 register middle (0x0b 8 ? 0x0b9): safmaca2m ........................................ 172 source address filtering mac address 2 register high (0x0ba ? 0x0bb): safmaca2h ........................................... 173 0x0bc ? 0x0c7: reserved .............................................................................................................................................. 173 txq rate control registers ............................................................................................................................................... 174 port 1 txq rate control register 1 (0x0c8 ? 0x0c9): p1txqrcr1 ............................................................................ 174 port 1 txq rate control register 2 (0x0ca ? 0x0cb): p1txqrcr2 ........................................................................... 174 port 2 txq rate control register 1 (0x0cc ? 0x0cd): p2txqrcr1 ........................................................................... 175 port 2 txq rate control regist er 2 (0x0ce ? 0x0cf): p2txqrcr2 ........................................................................... 175 port 3 txq rate control register 1 (0x0d0 ? 0x0d1): p3txqrcr1 ............................................................................ 176 port 3 txq rate control register 2 (0x0d2 ? 0x0d3): p3txqrcr2 ............................................................................ 176 0x0d4 ? 0x0d5: reserved .............................................................................................................................................. 176 input and output multiplex selection register .................................................................................................................... 177 input and output multiplex selection register (0x0d6 ? 0x0d7): iomxsel .................................................................. 177 configuration status and serial bus mode register ........................................................................................................... 178 configuration status and serial bus mode register (0x0d8 ? 0x0d9): cfgr .............................................................. 178 0x0da ? 0x0db: reserved .............................................................................................................................................. 178 port 1 auto - negotiation registers ....................................................................................................................................... 179 port 1 auto - negotiation next page transmit register (0x0dc ? 0x0dd): p1anpt ...................................................... 179 port 1 auto - negotiation link partner received next page register (0x0de ? 0x0df): p1alprnp ............................ 180 port 1 eee registers .......................................................................................................................................................... 181 port 1 eee and link partner advertisemen t register (0x0e0 ? 0x0e1): p1eeea ......................................................... 181 port 1 eee wake error count register (0x0e2 ? 0x0e3): p1eeewec ........................................................................ 182 port 1 eee control/status and auto - negotiation expansion register (0x0e4 ? 0x0e5): p1eeecs ............................. 182 port 1 lpi recovery time counter register ....................................................................................................................... 184 port 1 lpi recovery time counter register (0x0e6): p1lpirtc .................................................................................. 184 buffer load - to - lpi control 1 register ................................................................................................................................. 184 buffer load to lpi control 1 register (0x0e7): bl2lpic1 ............................................................................................. 184 port 2 auto - negotiation registers ....................................................................................................................................... 185 port 2 auto - negotiation next page transmit register (0x0e8 ? 0x0e9): p2anpt ........................................................ 185 port 2 auto - negotiation link partner receive d next page register (0x0ea ? 0x0eb): p2alprnp ............................ 186 port 2 eee registers .......................................................................................................................................................... 187 port 2 eee and link partner advertisement register (0x0ec ? 0x0ed): p2eeea ....................................................... 187 port 2 eee wake error count register (0x0ee ? 0x0ef): p2eeewec ........................................................................ 188 port 2 eee control/status and auto - negotiation expansion register (0x0f0 ? 0x0f1): p2eeecs ............................. 188 port 2 lpi recovery time counter register ....................................................................................................................... 190 port 2 lpi recovery time counter register (0x0f2): p2lpirtc .................................................................................. 190 pcs eee control register .................................................................................................................................................. 190 pcs eee control register (0x0f3): pcseeec ............................................................................................................. 190 empty txq - to - lpi wait time control register .................................................................................................................. 190 empty txq to lpi wait time control register (0x0f4 ? 0x0f5): etlwtc ................................................................... 190 buffer load - to - lpi control 2 register ................................................................................................................................. 191 buffer load to lpi control 2 register (0x0f6 ? 0x0f7): bl2lpic2 ............................................................................... 191 0x0f8 ? 0x0ff: reserved ............................................................................................................................................... 191 internal i/o register space mapping for interrupts and global rese t (0x100 ? 0x1ff) .................................................... 192 0x100 ? 0x123: reserved ................................................................................................................................................ 192 memory bist info register (0x124 ? 0x125): mbir ....................................................................................................... 192 global reset register (0x126 ? 0x127): grr ................................................................................................................ 193 0x128 ? 0x18f: reserved ............................................................................................................................................... 193 interrupt enable register (0x190 ? 0x191): ier ............................................................................................................. 193 interrupt status register (0x192 ? 0x193): isr .............................................................................................................. 194 0x194 ? 0x1ff: reserved ............................................................................................................................................... 194
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 11 revision 1.0 internal i/o register space mapping for trigger output units (12 units, 0x200 ? 0x3ff) ................................................ 195 trigger error register (0x200 ? 0x201): trig_err ...................................................................................................... 195 trigger active register (0x202 ? 0x203): trig_active ............................................................................................... 195 trigger done register (0x204 ? 0x205): trig_done ................................................................................................... 195 trigger enable register (0x206 ? 0x207): trig_en ...................................................................................................... 196 trigger software reset register (0x208 ? 0x209): trig_sw_rst .............................................................................. 196 trigger output unit 12 output pps pulse - width register (0x20a ? 0x20b): trig12_pps_width ............................ 196 0x20c ? 0x21f: reserved ............................................................................................................................................... 196 trigger output unit 1 target time in nanoseconds low - word register (0x220 ? 0x221): trig1_tgt_nsl ............. 197 trigger output unit 1 target time in nanoseconds high - word register (0x222 ? 0x223): trig1_tgt_nsh ............ 197 trigger output unit 1 target time in seconds low - word register (0x224 ? 0x225): trig1_tgt_sl ........................ 197 trigger output unit 1 target time in seconds high - word register (0x226 ? 0x227): trig1_tgt_sh ....................... 197 trigger output unit 1 configuration and control register 1 (0x228 ? 0x229): trig1_cfg_1 ...................................... 197 trigger output unit 1 configuration an d control register 2 (0x22a ? 0x22b): trig1_cfg_2 ..................................... 199 trigger output unit 1 configuration and control register 3 (0x22c ? 0x22d): trig1_cfg_3 .................................... 199 trigger output unit 1 configuration and control register 4 (0x22e ? 0x22f): trig1_cfg_4 ..................................... 199 trigger output unit 1 configuration and control register 5 (0x230 ? 0x231): trig1_cfg_5 ...................................... 199 trigger output unit 1 configuration and control register 6 (0x232 ? 0x233): trig1_cfg_6 ...................................... 200 trigger output unit 1 configuration and control register 7 (0x234 ? 0x235): trig1_cfg_7 ...................................... 200 trigger ou tput unit 1 configuration and control register 8 (0x236 ? 0x237): trig1_cfg_8 ...................................... 200 0x238 ? 0x23f: reserved ............................................................................................................................................... 200 trigger output unit 2 target time and output configuration/control registers (0x240 ? 0x257) ................................. 200 trigger output unit 2 configuration and control register 1 (0x248 ? 0x249): trig2_cfg_1 ...................................... 201 0x258 ? 0x25f: reserved ............................................................................................................................................... 201 trigger output unit 3 target time and output configuration/control registers (0x260 ? 0x277) ................................. 201 0x278 ? 0x27f: reserved ............................................................................................................................................... 201 trigger output unit 4 target time and output configuration/control registers (0x280 ? 0x297) ................................. 201 0x298 ? 0x29f: reserved ............................................................................................................................................... 201 trigger output unit 5 target time and output confi guration/control registers (0x2a0 ? 0x2b7) ................................ 201 0x2b8 ? 0x2bf: reserved ............................................................................................................................................... 201 trigger output unit 6 target time and output configuration/control registers (0x2c0 ? 0x2d7) ................................ 201 0x2d8 ? 0x2df: reserved .............................................................................................................................................. 201 trigger output unit 7 target time and output configuration/control registers (0x2e0 ? 0x2f7) ................................ 202 0x2f8 ? 0x2ff: reserved ............................................................................................................................................... 202 trigger output unit 8 target time and output configuration/control registers (0x300 ? 0x317) ................................. 202 0x318 ? 0x31f: reserved ............................................................................................................................................... 202 trigger output unit 9 target time an d output configuration/control registers (0x320 ? 0x337) ................................. 202 0x338 ? 0x33f: reserved ............................................................................................................................................... 202 trigger output unit 10 target time and output configuration/control registers (0x340 ? 0x357) ............................... 202 0x358 ? 0x35f: reserved ............................................................................................................................................... 202 trigger output unit 11 target time a nd output configuration/control registers (0x360 ? 0x377) ............................... 202 0x378 ? 0x37f: reserved ............................................................................................................................................... 202 trigger output unit 12 target time and output configuration/control registers (0x380 ? 0x397) ............................... 202 0x398 ? 0x3ff: reserved ............................................................................................................................................... 202
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 12 revision 1.0 internal i/o register space mappin g for ptp timestamp inputs (12 units, 0x400 ? 0x5ff) ........................................... 203 timestamp enable register (0x402 ? 0x403): ts_en ................................................................................................... 203 timestamp software reset register (0x404 ? 0x405): ts_sw_rst ............................................................................ 203 0x406 ? 0x41f: reserved ............................................................................................................................................... 203 timestamp unit 1 status register (0x 420 ? 0x421): ts1_status ............................................................................... 204 timestamp unit 1 configuration and control register (0x422 ? 0x423): ts1_cfg ...................................................... 204 timestamp unit 1 input 1st sample time in nanoseconds low - word register (0x424 ? 0x425): ts1_smpl1_nsl . 205 timestamp unit 1 input 1st sample time in nanoseconds high - word register (0x426 ? 0x427): ts1_smpl1_nsh 205 timestamp unit 1 input 1st sample time in seconds low - word register (0x428 ? 0x429): ts1_smpl1_sl ............ 205 timestamp unit 1 input 1st sample time in seconds high - word register (0x42a ? 0x42b): ts1_smpl1_sh .......... 205 timestamp unit 1 input 1 st sample time in sub - nanoseconds register (0x42c ? 0x42d): ts1_smpl1_sub_ns .... 206 0x42e ? 0x433: reserved ............................................................................................................................................... 206 timestamp unit 1 input 2 nd sample time in nanoseconds low - word register (0x434 ? 0x435): ts1_s mpl2_nsl .. 206 timestamp unit 1 input 2 nd sample time in nanoseconds high - word register (0x436 ? 0x437): ts1_smpl2_nsh 206 timestamp unit 1 input 2 nd sample time in seconds low - word register (0x438 ? 0x439): ts1_smpl2_sl ............ 206 timestamp unit 1 input 2 nd sample time in seconds high - word register (0x43a ? 0x43b): ts1_smpl2_sh .......... 207 timestamp unit 1 input 2 nd sample time in sub - nanoseconds register (0x43c ? 0x43d): ts1_smpl2_sub_ns ... 207 0x43e ? 0x43f: reserved ............................................................................................................................................... 207 timestamp unit 2 status/configuration/control and input 1 st sample time registers (0x440 ? 0x44d) ....................... 207 0x44e ? 0x453: reserved ............................................................................................................................................... 207 timestamp unit 2 input 2 nd sampl e time registers (0x454 ? 0x45d) ........................................................................... 207 0x45e ? 0x45f: reserved ............................................................................................................................................... 207 timestamp unit 3 status/configuration/control and input 1 st sample time registers (0x460 ? 0x46d) ....................... 207 0x46e ? 0x473: reserved ............................................................................................................................................... 207 time stamp unit 3 input 2 nd sample time registers (0x474 ? 0x47d) ........................................................................... 207 0x47e ? 0x47f: reserved ............................................................................................................................................... 208 timestamp unit 4 status/configuration/control and input 1 st sample time registers (0x480 ? 0x48d) ....................... 208 0x48e ? 0x493: reserved ............................................................................................................................................... 208 time stamp unit 4 input 2 nd sample time registers (0x494 ? 0x49d) ........................................................................... 208 0x49e ? 0x49f: reserved ............................................................................................................................................... 208 timestamp unit 5 status/configuration/control and input 1 st sample time registers (0x4a0 ? 0x4ad) ...................... 208 0x4ae ? 0x4b3: reserved .............................................................................................................................................. 208 time stamp unit 5 input 2 nd sample time registers (0x4b4 ? 0x4bd) ........................................................................... 208 0x4be ? 0x4bf: reserved .............................................................................................................................................. 208 timestamp unit 6 status/configuration/control and input 1 st sample time registers (0x4c0 ? 0x4cd) ..................... 208 0x4ce ? 0x4d3: reserved .............................................................................................................................................. 208 time stamp unit 6 input 2 nd sample time registers (0x4d4 ? 0x4dd) .......................................................................... 208 0x4de ? 0x4df: reserved .............................................................................................................................................. 208 timestamp unit 7 status/configuration/control and input 1 st sample time registers (0x4e0 ? 0x4ed) ...................... 208 0x4ee ? 0x4f3: reserved ............................................................................................................................................... 209 time stamp unit 7 input 2 nd sample time registers (0x4f4 ? 0x4fd) ........................................................................... 209 0x4fe ? 0x4ff: reserved ............................................................................................................................................... 209 timestamp unit 8 status/configuration/control and input 1 st sample time registers (0x500 ? 0x50d) ....................... 209 0x50e ? 0x513: reserved ............................................................................................................................................... 209 timestamp unit 8 input 2 nd sample time registers (0x514 ? 0x51d) ........................................................................... 209 0x51e ? 0x51f: reserved ............................................................................................................................................... 209 timestamp unit 9 status/configuration/control and input 1 st sample time registers (0x520 ? 0x52d) ....................... 209 0x52e ? 0x533: reserved ............................................................................................................................................... 209 timestamp unit 9 input 2 nd sample time registers (0x534 ? 0x53d) ........................................................................... 209 0x53e ? 0x53f: reserved ............................................................................................................................................... 209 timestamp unit 10 status/configuration/control and input 1 st sample time registers (0x540 ? 0x54d) ..................... 209 0x54e ? 0x553: reserved ............................................................................................................................................... 209 timestamp unit 10 input 2 nd sample time registers (0x554 ? 0x55d) ......................................................................... 209 0x55e ? 0x55f: reserved ............................................................................................................................................... 210 timestamp unit 11 status/configuration/control and input 1 st sample time registers (0x560 ? 0x56d) ..................... 210 0x56e ? 0x573: reserved ............................................................................................................................................... 210 timestamp unit 11 input 2 nd sample time registers (0x574 ? 0x57d) ......................................................................... 210
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 13 revision 1.0 0x57e ? 0x57f: reserved ............................................................................................................................................... 210 timestamp unit 12 status/configuration/control and input 1 st sample time registers (0x580 ? 0x58d) ..................... 210 0x58e ? 0x593: reserved ............................................................................................................................................... 2 10 timestamp unit 12 input 2 nd sample time registers (0x594 ? 0x59d) ......................................................................... 210 0x59e ? 0x5a3: reserved ............................................................................................................................................... 210 timestamp unit 12 input 3 rd sample time registers (0x5a4 ? 0x5ad) ......................................................................... 210 0x5ae ? 0x5b3: reserved .............................................................................................................................................. 210 timestamp unit 12 input 4 th sample time registers (0x5b4 ? 0x5bd) ......................................................................... 210 0x5be ? 0x5c3: reserved .............................................................................................................................................. 210 timestamp unit 12 input 5 th sample time registers (0x5c4 ? 0x5cd) ......................................................................... 210 0x5ce ? 0x5d3: reserved .............................................................................................................................................. 211 time stamp unit 12 input 6 th sample time registers (0x5d4 ? 0x5dd) ......................................................................... 211 0x5de ? 0x5e3: reserved .............................................................................................................................................. 211 timestamp unit 12 input 7 th sample time registers (0x5e4 ? 0x5ed) ......................................................................... 211 0x5ee ? 0x5f3: reserved ............................................................................................................................................... 211 timestamp unit 12 input 8 th sample time registers (0x5f4 ? 0x5fd) .......................................................................... 211 0x5fe ? 0x5ff: reserved ............................................................................................................................................... 211 internal i/o registers space mapping for ptp 1588 clock and global control (0x600 ? 0x7ff) .................................... 212 ptp clock control register (0x600 ? 0x601): ptp_clk_ctl ...................................................................................... 212 0x602 ? 0x603: reserved ................................................................................................................................................ 213 ptp real time clock in nanoseconds low - word register (0x604 ? 0x605): ptp_ rtc_nsl .................................... 213 ptp real time clock in nanoseconds high - word register (0x606 ? 0x607): ptp_rtc_nsh ................................... 213 ptp real time clock in seconds low - word register (0x608 ? 0x609): ptp_rtc_sl ............................................... 213 ptp real time clock in seconds high - word register (0x60a ? 0x60b): ptp_rtc_sh ............................................. 213 ptp real time clock in phase register (0x60c ? 0x60d): ptp_rtc_phase ........................................................... 214 0x60e ? 0x60f: reserved ............................................................................................................................................... 214 ptp rate in sub - nanoseconds low - word register (0x610 ? 0x611): ptp_sns_rate_l ......................................... 214 ptp rate in sub - nanoseconds high - word and control register (0x612 ? 0x613): ptp_sns_rate_h .................... 215 ptp temporary adjustment mode duration in low - word register (0x614 ? 0x615): ptp_temp_adj_dura_l ...... 215 ptp temporary adjustment mode duration in high - word register (0x616 ? 0x617): ptp_temp_adj_dura_h ..... 215 0x618 ? 0x61f: reserved ............................................................................................................................................... 215 ptp message configuration 1 register (0x620 ? 0x621): ptp_msg_cfg_1 .............................................................. 216 ptp message configuration 2 register (0x622 ? 0x623): ptp_msg_cfg_2 .............................................................. 217 ptp domain and ver sion register (0x624 ? 0x625): ptp_domain_ver ................................................................... 218 0x626 ? 0x63f: reserved ............................................................................................................................................... 218 ptp port 1 receive latency register (0x640 ? 0x641): ptp_p1_rx_latency ........................................................ 218 ptp port 1 transmit latency register (0x642 ? 0x643): ptp_p1_tx_latency ........................................................ 219 ptp port 1 asymmetry correction register (0x644 ? 0x645): ptp_p1_asym_cor ................................................... 219 ptp port 1 link delay register (0x646 ? 0x647): ptp_p1_link_dly ......................................................................... 219 ptp port 1 egress timestamp low - word register for pdelay_req and delay_req (0x648 ? 0x649): p1_xdly_req_tsl ...................................................................................................................................................... 219 ptp port 1 egress timestamp high - word register for pdelay_req and delay_req (0x64a ? 0x64b): p1_xdly_req_tsh ...................................................................................................................................................... 220 ptp port 1 egress timestamp low - word register for sync (0x64c ? 0x64d): p1_sync_tsl .................................. 220 ptp port 1 egress timestamp high - word register for sync (0x64e ? 0x64f): p1_sync_tsh ................................. 220 ptp port 1 egress timestamp low - word register for pdelay_resp (0x650 ? 0x651): p1_pdly_resp_tsl .......... 220 ptp port 1 egress timestamp high - word register for pdelay_resp (0x652 ? 0x653): p1_pdly_resp_tsh ......... 220 0x654 ? 0x65f: reserved ............................................................................................................................................... 220 ptp port 2 receive latency register (0x660 ? 0x661): ptp_p2_rx_latency ........................................................ 221 ptp port 2 transmit latency register (0x662 ? 0x663): ptp_ p2_tx_latency ........................................................ 221 ptp port 2 asymmetry correction register (0x664 ? 0x665): ptp_p2_asym_cor ................................................... 221 ptp port 2 link delay register (0x666 ? 0x667): ptp_p2_link_dly ......................................................................... 221 ptp port 2 egress timestamp low - word register for pdelay_req and delay_req (0x668 ? 0x669): p2_xdly_req_tsl ...................................................................................................................................................... 221 ptp port 2 egress timestamp high - word register for pdelay_req and delay_req (0x66a ? 0x66b): p2_xdly_req_tsh ...................................................................................................................................................... 222 ptp port 2 egress timestamp low - word register for sync (0x66c ? 0x66d): p2_sync_tsl .................................. 222
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 14 revision 1.0 ptp port 2 egress timestamp high - word register for sync (0x66e ? 0x66f): p2_sync_tsh ................................. 222 ptp port 2 egress timestamp low - word register for pdelay_resp (0x670 ? 0x671): p2_pdly_resp_tsl .......... 222 ptp port 2 egress timestamp high - word register for pdelay_resp (0x672 ? 0x673): p2_pdly_resp_tsh ......... 222 0x674 ? 0x67f: reserved ............................................................................................................................................... 222 gpio monitor register (0x680 ? 0x681): gpio_monitor ........................................................................................... 223 gpio output enable register (0x682 ? 0x683): gpio_oen ......................................................................................... 223 0x684 ? 0x687: reserved ................................................................................................................................................ 223 ptp trigger unit interrupt status register (0x688 ? 0x689): ptp_trig_is ................................................................. 223 ptp trigger unit interrupt enable register (0x68a ? 0x68b): ptp_trig_ie ............................................................... 223 ptp timestamp unit interrupt status register (0x68c ? 0x68d): ptp_ts_is .............................................................. 224 ptp timestamp unit interrupt enable register (0x68e ? 0x68f): ptp_ts_ie ............................................................. 225 0x690 ? 0x733: reserved ................................................................................................................................................ 225 dsp control 1 register (0x734 ? 0x735): dsp_cntrl_6 ............................................................................................ 225 0x736 ? 0x747: reserved ................................................................................................................................................ 225 analog control 1 register (0x748 ? 0x749): ana_cntrl_1 ......................................................................................... 226 0x74a ? 0x74b: reserved ............................................................................................................................................... 226 analog control 3 register (0x74c ? 0x74d): ana_cntrl_3 ....................................................................................... 226 0x74e ? 0x7ff: reserved ............................................................................................................................................... 226 mii management (miim) registers ...................................................................................................................................... 227 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 0 (regad = 0x0) - > mii basic control ............................ 228 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 1 (regad = 0x1) - > mii basic status .............................. 229 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 2 (regad = 0x2) - > phyid high .................................... 230 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 3 (regad = 0x3) - > phyid low ..................................... 230 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 4 (regad = 0x4) - > auto - negotiation advertisement ability 230 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 5 (regad = 0x5) - > auto - negotiation link partner ability .... 231 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 29 (regad = 0x1d) - > linkmd control and status .............. 232 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 31 (regad = 0x1f) - > phy special control and status ...... 232 management information base (mib) counters ................................................................................................................. 233 additional mib information .............................................................................................................................................. 235 static mac address table .................................................................................................................................................. 236 static mac table lookup examples: .............................................................................................................................. 237 dynamic mac address table ............................................................................................................................................. 238 dynamic mac address lookup example ....................................................................................................................... 238 vlan table ......................................................................................................................................................................... 239 vlan table lookup examples ........................................................................................................................................ 239 absolute maximum ratings ................................................................................................................................................ 240 operating ratings ............................................................................................................................................................... 240 electrical characteristics ..................................................................................................................................................... 240 timing specification s .......................................................................................................................................................... 244 mii transmit timing in mac mode .................................................................................................................................. 244 mii receive timing in mac mode ................................................................................................................................... 245 mii receive timing in phy mode .................................................................................................................................... 246 mii transmit timing in phy mode .................................................................................................................................. 247 reduced mii (rmii) timing ............................................................................................................................................. 248 miim (mdc/mdio) timing ............................................................................................................................................... 249 spi input and output timing ........................................................................................................................................... 250 auto - negotiation timing .................................................................................................................................................. 251 trigger output unit and timestamp input unit timing .................................................................................................... 252 reset and power sequence timing ................................................................................................................................ 254 reset circuit guidelines ...................................................................................................................................................... 255 reference clock ? connection and selection .................................................................................................................... 256 selection of reference crystal ............................................................................................................................................ 256 selection of isolation transformers ..................................................................................................................................... 257 package information and recommended landing pattern ................................................................................................ 258
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 15 revision 1.0 list of figures figure 1. typical straight cable connection ........................................................................................................................ 30 figure 2. typical crossover cable connection .................................................................................................................... 31 figure 3. auto - negotiation and parallel operation ............................................................................................................... 32 figure 4. near - end and far - end loopback .......................................................................................................................... 34 figure 5. destination address lookup flow chart in stage one ......................................................................................... 36 figure 6. destination address resolution flow chart in stage two .................................................................................... 37 figure 7. tail tag frame format .......................................................................................................................................... 41 figure 8. 802.1p priority field format .................................................................................................................................. 44 figure 9. ptp system clock overview ................................................................................................................................. 49 figure 10. trigger output unit organization and associated registers ............................................................................... 56 figure 11. timestamp input unit organization and a ssociated registers ........................................................................... 57 figure 12. trigger unit interrupts .......................................................................................................................................... 58 figure 13. timestamp unit interrupts ................................................................................................................................... 58 figure 14. complex waveform generation using cascade mode ....................................................................................... 63 figure 15. recommended low - voltage power connection using an external low - voltage regulator .............................. 68 figu re 16. recommended low - voltage power connection using the internal low - voltage regulator .............................. 69 figure 17. traffic activity and eee ....................................................................................................................................... 71 figure 18. spi register read operation ? low - speed mode .............................................................................................. 75 figure 19. spi register read operation ? high - speed mode ............................................................................................. 75 figure 20. spi register write operation timing ................................................................................................................... 75 figure 21. interface and register mapping ........................................................................................................................... 80 figure 22. mii transmit timing in mac mode .................................................................................................................... 244 figure 23. mii receive timing in mac mode ..................................................................................................................... 245 figure 24. mii receive timing in phy mode ...................................................................................................................... 246 figure 25. mii transmit timing in phy mode ..................................................................................................................... 247 figure 26. rmii transmit timing ......................................................................................................................................... 248 figure 27. rmii receive timing .......................................................................................................................................... 248 figure 28. miim (mdc/mdio) timing ................................................................................................................................. 249 figure 29. spi interface data input timing ......................................................................................................................... 250 figure 30. spi interface data output timing ...................................................................................................................... 250 figure 31. auto - negotiation timing .................................................................................................................................... 251 figure 32. trigger output unit and timestamp input unit timing ...................................................................................... 252 figure 33. reset and power sequence timing .................................................................................................................. 254 figure 34. simple reset circuit .......................................................................................................................................... 255 figure 35. recommended reset circuit for interfacing with a cpu/fpga output ............................................................ 255 figure 36. input reference clock connection options ...................................................................................................... 256
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 16 revision 1.0 list of tables table 1. mdi/mdi - x pin definitions ...................................................................................................................................... 30 table 2. spanning tree states ............................................................................................................................................. 40 table 3. tail tag rules ......................................................................................................................................................... 42 table 4. fid + da lookup in vlan mode ............................................................................................................................ 43 table 5. fid + sa lookup in vlan mode ............................................................................................................................ 44 table 6. gpio pin reference ............................................................................................................................................... 54 table 7. trigger output units and timestamp input units summary ................................................................................... 55 table 8. gpio registers affecting either all or specific units ............................................................................................. 55 table 9. device clocks and r elated pins ............................................................................................................................. 66 table 10. voltage options and requirements ...................................................................................................................... 68 table 11. power management and internal blocks .............................................................................................................. 70 table 12. available interfaces ............................................................................................................................................... 73 table 13. spi connection ..................................................................................................................................................... 73 table 14. register access using the spi interface ............................................................................................................... 74 table 15. mii management interface frame format ............................................................................................................ 76 table 16. mii interface signal and pin associations ............................................................................................................. 77 table 17. rmii clock settings ............................................................................................................................................... 78 table 18. rmii signal descriptions ....................................................................................................................................... 78 table 19. rmii phy - to - mac and mac - to - mac signal connections ................................................................................... 79 table 20. mapping of functional areas within the address space ...................................................................................... 81 table 21. ingress or egress data rate limits .................................................................................................................... 148 table 22. phy register mapping using the mii interface ................................................................................................... 227 table 23. format of per - port mib counters ....................................................................................................................... 233 table 24. port 1 mib counters ? indirect memory offset ................................................................................................... 234 table 25. "all ports dropped packet" mib counter format ............................................................................................... 235 table 26. "all ports dropped packet" mib counters ? indirect memory offsets ................................................................ 235 table 27. static mac t able format (8 entries) .................................................................................................................. 236 table 28. dynamic mac address table format (1024 entries) ......................................................................................... 238 table 29. vlan table format (16 entries) ......................................................................................................................... 239 table 30. mii transmit timing parameters in mac mode .................................................................................................. 244 table 31. mii receive timing parameters in mac mode .................................................................................................. 245 table 32. mii receive timing parameters in phy m ode .................................................................................................. 246 table 33. mii transmit timing parameters in phy mode .................................................................................................. 247 table 34. rmii timing parameters ..................................................................................................................................... 248 table 35. mdc/mdio timing parameters .......................................................................................................................... 249 table 36. spi timing parameters ....................................................................................................................................... 250 table 37. auto - negotiation timing parameters .................................................................................................................. 251 table 38. trigger output unit and timestamp input unit timing parameters ................................................................... 253 table 39. reset and power sequence timing parameters ................................................................................................ 254 table 40. typical reference crystal characteristics .......................................................................................................... 256 table 41. transformer selection criteria ............................................................................................................................ 257 table 42. qualified single port magnetics .......................................................................................................................... 257
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 17 revision 1.0 acronyms biu bus interface unit the host interface function that performs code conversion , buffering, and the like required for communications to and from a network . bpdu bridge protocol data unit a packet containing ports, add resses, etc. to make sure data being passed through a bridged network arrives at its proper destination. cmos complementary metal oxide semiconductor a common semiconductor manufacturing technique in which positive and negative types of transistors are combined to form a current gate that in turn forms an effective means of controlling electrical current through a chip. crc cyclic redundancy check a common technique for detecting data transmissio n errors. crc for ethernet is 32 bits long. cut - through switch a switch typically processes received packets by reading in the full packet (storing), then processing the packet to determine where it needs to go, then forwarding it. a cut - through switch s imply reads in the first bit of an incoming packet and forwards the packet. cut - through switches do not store the packet. da destination address the address to send packets. emi electro - magnetic interference a naturally occurring phenomena when the elect romagnetic field of one device disrupts, impedes or degrades the electromagnetic field of another device by coming into proximity with it. in computer technology, computer devices are susceptible to emi because electromagnetic fields are a byproduct of pas sing electricity through a wire. data lines that have not been properly shielded are susceptible to data corruption by emi. fcs frame check sequence see crc. fid frame or filter id specifies the frame identifier. alternately is the filter identifier. gpio general purpose input/output general purpose input/output pins are signal pins that can be controlled or monitored by hardware and software to perform specific tasks. igmp internet group management protocol the protocol defined by rfc 1112 for ip mul ticast transmissions. ipg inter - packet gap a time delay between successive data packets mandated by the network standard for protocol reasons. in ethernet, the medium has to be "silent" (i.e., no data transfer) for a short period of time before a node can consider the network idle and start to transmit. ipg is used to correct timing differences between a transmitter and receiver. during the ipg, no data is transferred, and information in the gap can be discarded or additions inserted without impact on data integrity. isi inter - symbol interference the disruption of transmitted code caused by adjacent pulses affecting or interfering with each other. isa industry standard architecture a bus architecture used in the ibm pc/xt and pc/at . jumbo packet a packet larger than the standard ethernet packet (1500 bytes). large packet sizes allow for more efficient use of bandwidth, lower overhead, less processing, etc. mac media acces s controller a functional block responsible for implementing the media access control layer which is a sub layer of the data link layer.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 18 revision 1.0 acronyms (continued) mdi medium dependent interface an ethernet port connection that allows network hubs or switch es to connect to other hubs or switches without a null - modem, or crossover, cable. mdi provides the standard interface to a particular media (copper or fiber) and is therefore ?media dependent?. mdi -x medium dependent interface crossover an ethernet port connection that allows networked end stations (i.e., pcs or workstations) to connect to each other using a null - modem, or crossover, cable. for 10/100 full - duplex networks, an end point (such as a computer) and a switch are wired so that each transmitter c onnects to the far end receiver. when connecting two computers together, a cable that crosses the tx and rx is required to do this. with auto mdi - x, the phy senses the correct tx and rx roles, eliminating any cable confusion. mib management information ba se the mib comprises the management portion of network devices. this can include things like monitoring traffic levels and faults (statistical), and can also change operating parameters in network nodes (static forwarding addresses). mii media independent interface the mii accesses phy registers as defined in the ieee 802.3 specification. nic network interface card an expansion board inserted into a computer to allow it to be connected to a network. most nics are designed for a particular type of network, protocol, and media, although some can serve multiple networks. npvid non - port vlan id the port vlan id value is used as a vlan reference. nrz non - return to zero a type of signal data encoding whereby the signal does not return to a zero state in between bits. phy a device or functional block which performs the physical layer interface function in a network. pll phase - locked loop an electronic circuit that controls an oscillator so that it maintains a constant phase angle (i.e., lock) on the fre quency of an input, or reference, signal. a pll ensures that a communication signal is locked on a specific frequency and can also be used to generate, modulate, and demodulate a signal and divide a frequency. ptp precision time protocol a protocol, ieee 1588 as applied to this device, for synchronizing the clocks of devices attached to a specific network. sa source address the address from which information has been sent. tdr time domain reflectometry tdr is used to pinpoint flaws and problems in underground and aerial wire, cabling, and fiber optics. they send a signal down the conductor and measure the time it takes for the signal -- or part of the signal -- to return. tsu time s tamp input unit the functional block which captures signals on the g pio pins and assigns a time to the specific event. tou trigger output unit the functional block which generates user configured waveforms on a specified gpio pin at a specific trigger time.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 19 revision 1.0 acronyms (continued) utp unshielded twisted pair commonly a cable containing 4 twisted pairs of wires. the wires are twisted in such a manner as to cancel electrical interference generated in each wire, therefore shielding is not required. vlan virtual local area network a configuration of computers that acts as i f all computers are connected by the same physical network but which may be located virtually anywhere.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 20 revision 1.0 pin configuration 64- pin lqfp
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 21 revision 1.0 pin description pin number pin name type pin function 1 rxm1 i/o port 1 physical receive (mdi) or transmit (mdix) signal ( - differential). 2 rxp1 i/o port 1 physical receive (mdi) or transmit (mdix) signal (+ differential). 3 agnd gnd analog ground. 4 txm1 i/o port 1 physical transmit (mdi) or receive (mdix) signal ( ? differential). 5 txp1 i/o port 1 physical transmit (mdi) or receive (mdix) signal (+ differential). 6 vdd_al p this pin is used as an input for the low voltage analog power. its source should have appropriate filtering with a ferrite bead and capacitors. 7 iset o set physical transmits output current. pull - down this pin with a 6.49k ? (1%) resistor to ground. 8 agnd gnd analog ground. 9 vdd_a3.3 p 3.3v analog vdd input power supply (must be well decoupled). 10 rxm2 i/o port 2 physical receive (mdi) or transmit (mdix) signal ( - differential). 11 rxp2 i/o port 2 physical receive (mdi) or transmit (mdix) signal (+ differential). 12 agnd gnd analog ground. 13 txm2 i/o port 2 physical transmit (mdi) or receive (mdix) signal ( ? differential). 14 txp2 i/o port 2 physical transmit (mdi) or receive (mdix) signal (+ differential). 15 fxsd2 i fiber signal detect input for port 2 in 100 base- fx fiber mode. when in copper mode, this input is unused and should be pulled to gnd. note: this functionality is available on ly on the ksz8463fml/frl devices. 16 vdd_col p this pin is used as a second input for the low - voltage analog power. its source should have appropriate filtering with a ferrite bead and capacitors. 17 pwrdn ipu full - chip power - down. active l ow (low = power - down; high or floating = normal operation). while this pin is asserted low, a ll i/o pins will be tri - state d. all registers will be set to their default state. while this pin is asserted, power consumption will be minimal. when the pin is de - asserted , power consumption will climb to nominal and the device will be in the same state as having been reset by the reset pin (rstn, pin 63). legend: p = power supply gnd = ground. i/o = bi - directional: i = input, o = output. ipd = input with internal pull - down (58k 30%). ipu = input with internal pull - up (58k 30%). opd = output with internal pull - down (58k 30%). opu = output with internal pull - up (58k 30%). ipu/o = input with internal pull - up (58k 30%) during power - up/reset; output pin otherw ise. ipd/o = input with internal pull - down (58k 30%) during power - up/reset; output pin otherwise. i/o (pd) = bi - directional input/output with internal pull - down (58k 30%). i/o (pu) = bi - directional input/output with internal pull - up (58k 30%).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 22 revision 1.0 pin desc ription (continued) pin number pin name type pin function 18 x1 i 25mhz crystal or oscillator clock connection. pins (x1, x2) connect to a crystal. if an oscillator is used, x1 connects to a vdd_io voltage tolerant oscillator and x2 is a no connect. this clock requirement is 50ppm. the ksz8463rl has the option to use refclk_i (50mhz) as its primary clock input instead of x1 and x2. this is determined by the state of pin 41 (spi_do) at power - up/reset time . see strappi ng options section for details. (applies to the ksz8463rl/frl devices only) 19 x2 o 20 dgnd gnd digital ground. 21 vdd_io p 3.3v, 2.5v, or 1.8v digital vdd input power pin for io logic and the internal low - voltage regulator. 22 tx_en ipd (8463ml , 8463fml ) ? mii mode: transmit enable. active high input indicates there is valid transmit data on txd[3:0]. (8463rl , 8463frl ) ? rmii mode: transmit enable. active high indicates there is valid transmit data on txd[1:0]. 23 txd3/ en_refclko ipd (8463ml , 8463fml ) ? mii mode: transmit data input bit[3]. this data is synchronous to the tx_clk (2.5 mhz in 10bt mode or 25mhz in 100bt mode) (8463rl , 8463frl ) ? rmii mode: en_refclko is used to enable refclk_o output on pin 32. if pulled up, the refclk_o output is enabled. if pulled down to disable, the refclk_o output is disabled. 24 txd2/nc ipd (8463ml , 8463fml ) ? mii mode: transmit data inp ut bit[2]. this data is synchronous to tx_clk (2.5mhz in 10bt mode or 25mhz in 100bt mode). (8463rl , 8463frl ) ? rmii mode: no connect. is not used. 25 txd1 ipd (8463ml , 8463fml ) ? mii mode: transmit data input bit[1]. this data is synchronous to tx_clk (2.5mhz in 10bt mode or 25mhz in 100bt mode). (8463rl , 8463frl ) ? rmii mode: transmit data input bit[1]. this data is synchronous to refclk (50mhz). 26 txd0 ipd (8463ml , 8463fml ) ? mii mode: transmit data input bit[0]. this data is synchronous to tx_clk ( 2.5mhz in 10bt mode or 25mhz in 100bt mode). (8463rl , 8463frl ) ? rmii mode: transmit data input bit[0]. this data is synchronous to refclk (50mhz). 27 tx_clk/ refclk_i i/o(pd) (8463ml , 8463fml ) ? mii mode: transmit clock. this is the output clock in phy m ii mode and input clock in mac mii mode (2.5mhz in 10bt mode or 25mhz in 100bt mode). (8463rl , 8463frl ) ? rmii mode: reference input clock (50mhz). 28 tx_er/ mii_bp ipd (8463ml , 8463fml ) ? mii mode: transmit error input in mii mac mode. in mii phy mode: 1 = disable the mii phy mode link and enable the bypass mode. 0 = set mii phy mode in normal operation. (8463rl , 8463frl ) ? rmii mode: no connect. not used.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 23 revision 1.0 pin description (continued) pin number pin name type pin function 29 dgnd gnd digital ground . 30 vdd_io p 3.3v, 2.5v, or 1.8v digital vdd input power pin for io logic and the internal low - voltage regulator . 31 rx_dv ipu/o (8463ml , 8463fml ) ? mii mode: receive data valid, active high indicates that receive data on rxd[3:0] is valid. (8463rl , 8463frl ) ? rmii mode: receive data valid, active high indicates that receive data on rxd[1:0] is valid. config mode: this pin is pulled up or down and its value is latched during the power - up / reset to select either phy mii mode or mac mii mode. see strapping options section for details. 32 rxd3/ refclk_o ipd/o (8463ml , 8463fml ) ? mii mode: receive data output bit[3]. this data is synchronous to rx _clk (2.5mhz in 10bt mode or 25mhz in 100bt mode) (8463rl , 8463frl ) ? rmii mode: refclk_o (50mhz) output when en_refclko ( pin 23) is pulled - up. (16 ma. d rive) 33 rxd2 ipu/o (8463ml , 8463fml ) ? mii mode: receive data output bit[2]. this data is synchronous to rx_clk (2.5mhz in 10bt mode or 25mhz in 100bt mode) (8463rl , 8463frl ) ? rmii mode: not used. config mode: this pin is pulled up or down via an external resistor and its value is latched during power - up/reset to select either high- speed sp i or low - speed spi mode. see strapping options section for details. 34 rxd1 ipu/o (8463ml , 8463fml ) ? mii mode: receive data output b it[1]. this data is synchronous to rx_clk (2.5mhz in 10bt mode or 25mhz in 100bt mode) (8463rl , 8463frl ) ? rmii mode: receive data output bit[1]. this data is synchronous to refclk (50mhz). config mode: this pin is pulled up or down via an external resistor and its value is latched during power - up/reset to select serial bus mode. see strapping options section for details. 35 rxd0 ipd/o (8463ml , 8463fml ) ? mii mode: receive data output bit[0]. this data is synchronous to rx_clk (2.5mhz in 10bt mode or 25mhz in 100bt mode) (8463rl , 8463frl ) ? rmii mode: receive data output bit[0]. this data is synchronous to refclk (50mhz). config mode: this pin is pulled up or down v ia an external resistor and its value is latched during power - up/reset to select serial bus mode. see strapping options section for details. 36 crs/ gpio9_rli i/o(pd) (8463ml , 8463fml ) ? mii mode: carrier sense. this is an output signal in phy mii mode and an input signal in mac mii mode. (8463rl , 8463frl ) ? rmii mode: this is gpio9 while in rmii mode. (refer to gpio0 pin 48 description).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 24 revision 1.0 pin description (continued) pin number pin name type pin function 37 col/ gpio10_rli i/o(pd) (8463ml , 8463fml ) ? mii mode: collision detect. this is an output signal in phy mii mode and an input signal in mac mii mode. (8463rl , 8463frl ) ? rmii mode: this is gpio10 while in rmii mode. (refer to gpio0 pin 48 description). 38 rx_clk/ gpio7_rli i/o(pd) (8463ml , 8463fml ) ? mii mode: receive clock. this is an output clock in phy mii mode and an input clock in mac mii mode (2.5mhz in 10bt mode or 25mhz in 100bt mode). (8463rl , 8463frl ) ? rmii mode: this is gpio7 while in rmii mode. ( refer to gpio0 pin 48 description). 39 dgnd gnd digital ground 40 vdd_l p this pin can be used in tw o ways; as the pin to input a low v oltage to the device if the internal low - voltage regulator is not used, or as the low - voltage output if the internal low - voltage regulator is used. 41 spi_do ipu/o serial data output in spi slave mode. config mode: this pin pull - up/pull - down value is latched to select clock input either 25mhz from x1/x2 or 50mhz from refclk_i during power - up/reset. see strapping options section for detail. the refclk_i (50mhz) option is available only on the ksz8463rl and ksz8463frl . for the ksz8463ml and ksz8463fml , this pin must not be pulled down at power - up/reset. 42 spi_csn ipd chip select (active low) in spi slave mode . when spi_csn is high, the device is deselected and spi_do is held in a high - impedance state. a high -to - low transition is used to initiate the spi data transfer. note: an external 4.7k pull - up is needed on this pin when it is in use. 43 intrn opu int errupt output. this is an active low signal going to the host cpu to indicate an interrupt status bit is set. this pin needs an external 4.7k ? pull - up resistor. 44 spi_sclk/ mdc ipu serial clock input in spi (spi_sclk) slave mode. miim (mdc) mode is clock input. 45 spi_di/ mdio i/o(pu) serial data input in spi (spi_di) slave mode . serial data input/output in miim (mdio) mode. this pin needs an external 4.7k ? pull - up resistor. 46 gpio8 i/o(pd) this pin is gpio8 (refer to gpio0 pin 48 description). 47 gpio11 i/o(pu) this pin is gpio11 (refer to gpio0 pin 48 description). 48 gpio0 i/o(pu) general purpose input/output [0] this pin can be used as an input or output pin for use by the ieee 1588 event trigger or timestamp capture units. it will be synchroni zed to the internal ieee 1588 clock. the host processor can also directly drive or read this gpio pin. 49 gpio1 i/o(pu) this pin is gpio1 (refer to gpio0 pin 48 description). 50 dgnd gnd digital ground . 51 vdd_l p this pin can be used in two ways; as the pin to input a l ow v oltage to the device if the internal low - voltage regulator is not used, or as the low - voltage output if the internal low - voltage regulator is used.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 25 revision 1.0 pin description (continued) pin number pin name type pin function 52 gpio2 i/o(p u) this pin is gpio2 (refer to gpio0 pin 48 description). 53 gpio3 i/o(pd) this pin is gpio3 (refer to gpio0 pin 48 description). 54 gpio4 i/o(pd) this pin is gpio4 (refer to gpio0 pin 48 description). 55 gpio5 i/o(pd) this pin is gpio5 (refer to gpio0 pin 48 description). 56 vdd_io p 3.3v, 2.5v, or 1.8v digital vdd input power pin for io logic and the internal low - voltage regulator . 57 dgnd gnd digital ground. 58 gpio6 i/o(pu) this pin is gpio6 (refer to gpio0 pin 48 description). 59 p1led1/ gpio7_mli i/o(pu) programmable led output to indicate port 1 and port 2 activity/status. the led is on (active) when output is low ; the led is off (inactive) when output is high . the port 1 led pins outputs are determined by the table below if reg. 0x06c ? 0x06d, bits [14:12] are set to ?000?. otherwise, the port 1 led pins are controlled via the processor by setting reg. 0x06c ? 0x06d, bits [14:12] to a non - zero value. the port 2 led pins outputs are determined by the table below if reg. 0x084 ? 0x085, b its [14:12] are set to ?000?. otherwise, the port 2 led pins are controlled via the processor by setting reg. 0x084 ? 0x085, bits [14:12] to a non - zero value. automatic port 1 and port 2 indicators are defined as follows: two bits [9:8] in sgcr7 contr ol register 00 (default) 01 10 11 p1led1/p2led1 speed act duplex duplex p1led0/p2led0 link/act link link/act link link = led on act = led blink link/act = led on/blink speed = led on (100bt) led off (10bt) duplex = led on (full duplex) led off (half duplex) (8463ml , 8463fml ) ? mii mode: functionality is controlled by iomxsel register d6h. pin 59 is p1led1 (default) or gpio7. pin 60 is p1led0. pin 61 is p2led1 (default) or gpio9 . pin 62 is p2led0 (default) or gpio10. (8463rl , 8463frl ) ? rmii mode: pin 59 is p1led1. pin 60 is p1led0. pin 61 is p2led1. pin 62 is p2led0. 60 p1led0 i/o(pu) 61 p2led1/ gpio9_mli i/o(pu) 62 p2led0/ gpio10_mli i/o(pu)
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 26 revision 1.0 pin description (continued) pin number pin name type pin function 63 rstn ipu hardware reset input (active l ow). this reset input is required to be low for a minimum of 10ms after supply voltages vdd_io and 3.3v are stable. 64 fxsd1 i fiber signal detect input for port 1 in 100 base- fx fiber mode. when in copper mode, this input is unused and should be pulled to gnd. note: this function ality is available only on the ksz8463fml/frl devices.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 27 revision 1.0 strapping options pin number pin name type pin function 31 rx_dv ipu/o phy mode or mac mode select during power - up/reset: pull - up (default) or no connect = phy mii mode. pull - down = mac mii mode. note: there is no equivalent strapping pin for rmii mode. 33 rxd2 ipu/o high - speed spi or low - speed spi select during power - up/reset: pull - up (default) or no connect = high- speed spi mode (up to 50mhz). pull - down = low - speed spi mode (up to 12.5mhz). 34 rxd1 ipu/o serial bus mode selection to access the ksz8463 internal registers during power - up / reset: note: spi slave mode is required for access to all registers, and for implementing the ieee1588 protocol. [ rxd1 , rxd0 ] = [0, 0] ? reserved [ rxd1 , rxd0 ] = [0, 1] ? reserved [ rxd1 , rxd0 ] = [1, 0] ? spi slave mode (default) interface signals type description spi_do (pin 41) o spi data out spi_sclk (pin 44) i spi clock spi_di (pin 45) i spi data in spi_csn (pin 42) i spi chip select [ rxd1 , rxd0 ] = [1, 1] ? miim - mode in miim mode, the ksz8463 provides access to its 16 - bit miim registers through its mdc ( pin 44) and mdio ( pin 45). 35 rxd0 ipd/o 41 spi_do ipu/o 25mhz / 50mhz input clock select for x1/x2 refclk_i on power - up / reset: pull - up (default) or no connect = 25mhz input from x1/x2. (both rmii and mii mode) pull - down = 50mhz input from refclk_i (en_refclk = ?0?). (only rmii mode) this option is available only on the ksz8463rl and ksz8463frl . for the ksz8463ml and ksz8463fml , this pin must not be pulled down at power - up/reset time. legend: ipu/o = input with internal pull - up (58k 30%) during power - up/reset; output pin otherwise. ipd/o = input with internal pull - down (58k 30%) during power - up/reset; output pin otherwise. all strap - in pins are latched at the end of the power - up or reset cycle. they are also latched when powering - up from a hardware or software power - down or hardware reset state.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 28 revision 1.0 functional description the ksz8463 is a highly - integrated networking device that incorporates a layer - 2 switch, two 10bt/100bt physical layer transceivers (phys) and associated mac units, one mii/rmii interface on a third accessible mac unit, and contains key ieee 1588 precision time protocol (ptp) features. the ksz8463 operates in a managed mode. in managed mode, a host processor can access and control all phy, switch, mac, and ieee 1588 related registers in the ksz8463 via the high - speed spi bus, or partial control via the miim (mdc/mdio) interface. physical si gnal transmission and reception are enhanced through the use of analog circuits in the phy that make the design more efficient and allow for low power consumption. b oth power management and energy - efficient ethernet (eee) are designed to save more power wh ile the device is in idle state. the ksz8463 is fully compliant to ieee802.3u standards. physical (phy ) block 100base - tx transmit the 100base - tx transmit function performs parallel - to - serial conversion, 4b/5b coding, scrambling, nrz - to - nrzi conversion, and mlt3 encoding and transmission. the circuitry starts with a parallel - to - serial conversion, which converts the m ii data from the mac into a 125 mhz serial bit stream. the data and control stream is then converted into 4b/5b coding, followed by a scrambler. the serialized data is further converted from nrz - to - nrzi format, and then transmitted in mlt3 current output. an external 6.49k ? (1%) resistor for the 1:1 transformer ratio sets the output current. the output signal has a typical rise/ fall time of 4 ns an d complies with the ansi tp - pmd standard regarding amplitude balance, overshoot, and timing jitter. the wave - shaped 10base - t output driver is also incorporated into the 100base - tx driver. 100base - tx receive the 100base - tx receiver function performs adaptiv e equalization, dc restoration, mlt3 - to - nrzi conversion, data and clock recovery, nrzi - to - nrz conversion, de - scrambling, 4b/5b decoding, and serial - to - parallel conversion. the receiving side starts with the equalization filter to compensate for inter - symb ol interference (isi) over the twisted pair cable. since the amplitude loss and phase distortion is a function of the cable length, the equalizer has to adjust its characteristics to optimize performance. in this design, the variable equalizer makes an ini tial estimation based on comparisons of incoming signal strength against some known cable characteristics, and then tunes itself for optimization. this is an ongoing process and self - adjusts against environmental changes such as temperature variations. nex t, the equalized signal goes through a dc restoration and data conversion block. the dc restoration circuit is used to compensate for the effect of baseline wander and to improve the dynamic range. the differential data conversion circuit converts the mlt3 format back to nrzi. the slicing threshold is also adaptive. the clock re covery circuit extracts the 125 mhz clock from the edges of the nrzi signal. this recovered clock is then used to convert the nrzi signal into the nrz format. this signal is sent thro ugh the de - scrambler followed by the 4b/5b decoder. finally, the nrz serial data is converted to an mii format and provided as the input data to the mac. scrambler/de - scrambler (100base - tx only) the purpose of the scrambler is to spread the power spectrum of the signal to reduce electromagnetic interference (emi) and baseline wander. transmitted data is scrambled through the use of an 11 - bit wide linear feedback shift register (lfsr). the scrambler generates a 2047 - bit non - repetitive sequence. then the rec eiver de - scrambles the incoming data stream using the same sequence as at the transmitter. pll clock synthesizer (recovery) the device incorporates an internal pll clock synthesizer for data recovery as well as for generating various clocks used in the dev ice. refer to the device clocks section for details of this area.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 29 revision 1.0 100base - fx operation fiber mode is available only on the ksz8463fml and ksz8463frl devices. 100base - fx operation is similar to 100base - tx operation except that the scrambler/de - scrambler and mlt3 encoder/decoder are bypassed on transmission and reception. in this fiber mode, the auto - negotiation feature is bypassed and auto mdi/mdix is disabled s ince there is no standard that supports fiber auto - negotiation and auto mdi/mdix mode. the fiber port must be forced to either full - duplex or half - duplex mode. all ksz8463 devices are in copper mode (10b ase - t / 100b ase - tx) when reset or powered on. fiber mode is enabled by clearing bits [7:6] in the cfgr register (0x0d8 - 0x0d9). each port is individually configurable. bit [13] in the dsp_cntrl_6 register (0x734 - 0x735) should also be cleared if either (or both) ports are set to fiber mode. 100base - fx signal d etection in 100base - fx operation, the fiber signal detect input s fxsd1 and fxsd2 are usually connected to the signal detect (sd ) output pin of the fiber transceiver . when fxsd is low , no fiber signal is detected and a far - end fault (fef) is generated. when fxsd is high , the fiber signal is detected. to ensure proper operation, a resistive voltage divider is recommended to adjust the fiber transceiver sd output voltage swing to match the fxsd pin?s input voltage threshold. alternatively, the user may choose not to implement the fef feature. in this case, the fxsd input pin is tied high to force 100base - fx mode. in copper mode, and on the ksz8463ml and ksz8463rl, the fxsd pins are unused and should be pulled low . 100base - fx far - end fault a far - end fault (fef) occurs when the signal detection is logically false on the receive side of the fiber transceiver. the ksz8463fml/frl detects an fef when its fxsd input is below the f iber s ignal detect t hreshold . when an fef is detected, the ksz8463fm l/frl signals its fiber link partner that a fef has occurred by sending 84 1?s followed by a zero in the idle period between frames. by default, fef is enabled. fef can be disabled through register setting in p1cr4[12] and p2cr4[12]. 10base - t transmit the 10base - t driver is incorporated with the 100base - tx driver to allow for transmission using the same magnetics. they are internally wave - shaped and pre - emphasized into outputs with typical 2.3v amplitude. the harmonic contents are at least 27db below the fu ndamental frequency when driven by an all - ones manchester - encoded signal. 10base - t receive on the receive side, input buffers and level detecting squelch circuits are employed. a differential input receiver circuit a nd a phase - locked loop (pll) perform the decoding function. the manchester - encoded data stream is separated into clock signal and nrz data. a squelch circuit rejects signals with levels less than 400mv or with short pulse widths to prevent noise at the rxp1 or rxm1 input from falsely triggering the decoder. when the input exceeds the squelch limit, the pll locks onto the incoming signal and the ksz8463 decodes a data frame. the receiver clock is maintained active during idle periods in between data reception.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 30 revision 1.0 mdi/mdi - x auto crossover to elimina te the need for crossover cables between similar devices, the ksz8463 supports hp - auto mdi/mdi - x and ieee 802.3u standard mdi/mdi - x auto crossover. hp - auto mdi/mdi - x is the default. the auto - sense function detects remote transmit and receive pairs and corr ectly assigns the transmit and receive pairs for the ksz8463. this feature is extremely useful when end users are unaware of cable types in addition to saving on an additional uplink configuration connection. the auto - crossover feature can be disabled thro ugh the port control registers. the ieee 802.3u standard mdi and mdi - x definitions are as in table 1 : table 1 . mdi/mdi - x pin definitions mdi mdi -x rj45 pins signals rj45 pins signals 1 td+ 1 rd+ 2 td - 2 rd- 3 rd+ 3 td+ 6 rd- 6 td - straight cable a straight cable connects an mdi device to an mdi - x device or an mdi - x device to an mdi device. figure 1 shows a typical straight cable connection bet ween a network interface card (nic) and a switch, or hub (mdi - x). figure 1 . typical straight cable connection
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 31 revision 1.0 crossover cable a crossover cable connects an mdi device to another mdi device, or an mdi - x device to another mdi - x device. figure 2 shows a typical crossover cable c onnection between two chips or hubs (two mdi - x devices). figure 2 . typical crossover cable connection auto - negotiation the ksz8463 conforms to the auto - n egotiation protocol as described by ieee 802.3 . it allow s each port to op erate at either 10 base - t or 100 base - tx. auto - negotiation allows unshielded twisted pair (utp) link partners to select the best common mode of operation. in auto - negotiation , the link partners advertise capabilities across the link to each other and then co mpare their own capabilities with those they received from their link partners. the highest speed and duplex setting that is common to the two link partners is selected as the mode of operation. auto - negotiation is also used to negotiate support for energy efficient ethernet (eee). auto - n egotiation is only supported on ports in copper mode, not fiber mode . the following list shows the speed and duplex operation mode from highest to lowest. ? highest : 100 base - tx, full - duplex ? high: 100 base - tx, half - duplex ? low: 10 base - t, full - duplex ? lowest: 10 base - t, half - duplex if auto - negotiation is not supported or the link partner to the ksz8463 is forced to bypass auto - negotiation , the mode is automatically set by observing the signal at the receiver. this is known as parallel mode because while the transmitter is sending auto - negotiation advertisements, the receiver is listening for advertisements or a fixed signal protocol. the link setup is shown in figure 3 . receive pair receive pair transmit pair 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 transmit pair 10/100 ethernet media dependent interface 10/100 ethernet media dependent interface modular connector (rj-45) hub (repeater or switch) modular connector (rj-45) hub (repeater or switch) crossover cable
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 32 revision 1.0 figure 3 . auto - negotiation and parallel operation linkmd ? cable diagnostics the ksz8463 linkmd uses time domain reflectometry (tdr) to analyze the cabling plant for common cabling problems such as open circuits, short circuits, and impedance mismatches. linkmd works by sending a pulse of known amplitude and duration down the mdi and mdi - x p airs and then analyzes the shape of the reflected signal. timing the pulse duration gives an indication of the distance to the cabling fault with a maximum distance of 200m and an accuracy of 2m. internal circuitry displays the tdr information in a user - r eadable digital format in register p1scslmd[8:0] or p2scslmd[8:0]. note : c able diagnostics are only valid for copper connections . f iber - optic operation is not supported. access linkmd is initiated by accessing register p1scslmd (0x07c) or p2scslmd (0x094), the phy special control/status & linkmd register. usage before initiating linkmd, the value 0x8008 must be written to the ana_cntrl_3 register (0x74c ? 0x74d). this needs to be done once (after power - n reset) , but does not need to be repeated for each ini tiation of linkmd. auto - mdix must also be disabled before using linkmd. to disable auto - mdix, write a ?1? to p1cr4[10] or p2cr4[10] to enable manual control over the pair used to transmit the linkmd pulse. the self - clearing cable diagnostic test enable bit , p1scslmd[12] or p2scslmd[12], is set to ?1? to start the test on this pair.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 33 revision 1.0 when bit p1scslmd[12] or p2scslmd[12] returns to ?0?, the test is completed. the test result is returned in bits p1scslmd[14:13] or p2scslmd[14:13] and the distance is returne d in bits p1scslmd[8:0] or p2scslmd[8:0]. the cable diagnostic test results are as follows: ? 00 = valid test, normal condition \ ? 01 = valid test, open circuit in cable ? 10 = valid test, short circuit in cable ? 11 = invalid test, linkmd? failed if p1scslmd[14: 13] or p2scslmd[14:13] is ?11?, this indicates an invalid test . this occurs when the ksz8463 is unable to shut down the link partner. in this instance, the test is not run, as it is not possible for the ksz8463 to determine if the detected signal is a ref lection of the signal generated or a signal from another source. cable distance can be approximated by utilizing the following formula: ? p1scslmd[8:0] x 0.4m for port 1 cable distance ? p2scslmd[8:0] x 0.4m for port 2 cable distance this constant (0.4m) may be calibrated for different cabling conditions, including cables with a velocity of propagation that varies significantly from the norm. on - chip termination resistors using the ksz8463 reduces board cost and simplifies board layout by using on - chip termina tion resistors for the rx/tx differential pairs , eliminating the need for external termination resistors in copper mode . the internal chip termination and biasing provides significant power savings when compared with using external biasing and termination resistors. loopback support the ksz8463 provides two loopback modes . o ne is near - end (remote) loopback to support remote diagnosing of failures on line side, and the other is far - end loopback to support local diagnosing of failures through all blocks of th e device. in loopback mode, the speed of the phy port will be set to 100base - tx full - duplex mode. far - end loopback far - end loopback is conducted between the ksz8463 ?s two phy ports. the loopback path starts at the ? o riginating ? phy port?s receive inputs (r xp/rxm), wraps around at the ?loopback? phy port?s pmd/pma (physical media dependent/physical media attachment) , and ends at the ?originating? phy port?s transmit outputs (txp/txm). bit[8] of registers p1cr4 and p2cr4 is used to enable far - end loopback fo r port s 1 and 2, respectively. as an alternative, bit [14] of registers p1mbcr and p2mbcr can be used to enable far - end loopback. the far - end loopback path is illustrated in the figure 4 . near - end (remote) loopback near - end (remote) loopback is conducted at either phy port 1 or phy port 2 of the ksz8463 . the loopback path starts at the phy port?s receive inputs (rxpx/rxmx), wraps around at the same phy po rt?s pmd/pma, and ends at the same phy port?s transmit outputs (txpx/txmx). bit[1] of registers p1phyctrl and p2phyctrl is used to enable near - end loopback for port s 1 and 2, respectively. as an alternative, bit [9] of registers p1scslmd and p2scslmd can be used to enable near - end loopback. the near - end loopback paths for port 1 and port 2 are illustrated in figure 4 .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 34 revision 1.0 figure 4 . near - end and far - end loopback
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 35 revision 1.0 mac (media access controller) block mac operation the ksz8463 strictly abides by ieee 802.3 standards to maximize compatibility. additionally, there is an added mac filtering function to filter unicast packets. the mac filtering function is useful in applications such as voip where restricting certain pac kets reduces congestion and thus improves performance. address lookup the internal dynamic mac address lookup table stores mac addresses and their associated information. it contains a 1k entry unicast address learning table plus switching information. the ksz8463 is guaranteed to learn 1k addresses and distinguishes itself from hash - based lookup tables, which , depending on the operating environment and probabilities, may not guarantee the absolute number of addresses they can learn. learning the internal l ookup engine updates the dynamic mac address table with a new entry if the following conditions are met: ? the received packet's source address (sa) does not exist in the lookup table. ? the received packet has no receiving errors , and the packet size is of l egal length. the lookup engine inserts the qualified sa into the table, along with the port number and time stamp. if the table is full, t he oldest entry of the table is deleted to make room for the new entry. migration the internal lookup engine also mon itors whether a station has moved. if a station has moved, it updates the table accordingly. migration happens when the following conditions are met: ? the received packet's sa is in the table but the associated source port information is different. ? the rece ived packet has no receiving errors , and the packet size is of legal length. the lookup engine updates the existing record in the table with the new source port information. aging the lookup engine updates the time stamp information of a record whenever t he corresponding sa appears. the time stamp is used in the aging process. if a record is not updated for a period of time, the lookup engine removes the record from the table. the lookup engine constantly performs the aging process and continuously removes aging records. the aging period is about 300 seconds ( 75 seconds). this feature can be enabled or disabled through global register sgcr1[10]. forwarding the ksz8463 forwards packets using the algorithm that is depicted in the following flowcharts. figure 5 shows stage one of the forwarding algorithm where the search engine looks up the vlan id, static table, and dynamic table for the destination address, and comes up with ?port to forward 1? (ptf1). ptf1 is then further modified by spanning tree, igmp snooping, port mirroring, and port vlan processes to come up with ?port - to - forward 2? (ptf2), as shown in fig ure 6 . the packet is sent to ptf2. the ksz8463 will not forward the following packets: ? error packets: these include framing errors, frame check sequence (fcs) errors, alignment errors, and illegal size packet errors. ? ieee802.3x pause frames: ksz8463 intercepts these packets and performs full duplex flow control accordingly. "local" packets: based on destination address (da) lookup. if the destination port from the lookup table matches the p ort from which the packet originated, the packet is defined as "local."
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 36 revision 1.0 figure 5 . destination address lookup flow chart in stage one
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 37 revision 1.0 figure 6 . destination address resolution flow chart in stage two inter - packet gap (ipg) if a frame is successfully transmitted, then the minimum 96 - bit time for ipg is measured between two consecutive packets. if the current packet is experiencing collisions, the minimum 96 - bit time for ipg is measured from carrier sense (crs) to the next transmit packet. back - off algorithm the ksz8463 implements the ieee standard 802.3 binary exponential back - off algorithm in half - duplex mode. after 16 collisions, the packet is dr opped. late collision if a transmit packet experiences collisions after 512 bit times of the transmission, the packet is dropped. legal packet size the ksz8463 discards packets less than 64 bytes and can be programmed to accept packet sizes up to 1536 byte s in sgcr2[1]. the ksz8463 can also be programmed for special applications to accept packet sizes up to 2000 bytes in sgcr1[4].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 38 revision 1.0 flow control the ksz8463 supports standard 802.3x flow control frames in both the transmit and receive directions . in the receiv e direction , if a pause control frame is received on any port , the ksz8463 will not transmit the next normal frame on that port until the timer, specified in the pause control frame, expires. if another pause frame is received before the current timer expi res, the timer will then update with the new value in the second pause frame. during this period (while it is flow controlled), only flow control packets from the ksz8463 are transmitted. in the transmit direction , the ksz8463 has intelligent and efficient ways to determine when to invoke flow control and send pause frames . the flow control is based on availability of the system resources, including available buffers, available transmit queues and available receive queues . the ksz8463 issues a pause frame c ontaining the maximum pause time defined in ieee standard 802.3x. once the resource is freed up, the ksz8463 sends out another flow control frame with zero pause time to turn off the flow control (turn on transmission to the port). a hysteresis feature is provided to prevent the flow control mechanism from being constantly activated and deactivated. half - duplex backpressure a half - duplex backpressure option (non - ieee 802.3 standards) is also provided. the activation and deactivation conditions are the same as in full - duplex mode. if backpressure is required, the ksz8463 sends preambles to defer the other stations' transmission (carrier sense deference). to avoid jabber and excessive deference (as defined in the 802.3 standard), after a certain time, the ksz 8463 discontinues the carrier sense and then raises it again quickly. this short silent time (no carrier sense) prevents other stations from sending out packets thus keeping other stations in a carrier sense deferred state. if the port has packets to send during a backpressure situation, the carrier sense type backpressure is interrupted and those packets are transmitted instead. if there are no additional packets to send, carrier sense type backpressure is reactivated again until chip resources free up. if a collision occurs, the binary exponential back - off algorithm is skipped and carrier sense is generated immediately, thus reducing the chance of further collision and carrier sense is maintained to prevent packet reception. to ensure no packet loss in 10b ase - t or 100base - tx half - duplex mode, the user must enable the following bits: ? aggressive back off (bit [8] in sgcr1) ? no excessive collision drop (bit [3] in sgcr2) ? back pressure flow control enable (bit [11] in p1cr2/p2cr2) note : these bits are not set in default, since this is not the ieee standard.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 39 revision 1.0 broadcast storm protection the ksz8463 has an intelligent option to protect the switch system from receiving too many broadcast packets. as the broadcast packets are forwarded to all ports except the sourc e port, an excessive number of switch resources (bandwidth and available space in transmit queues) may be utilized. the ksz8463 has the option to include ?multicast packets? for storm control. the broadcast storm rate parameters are programmed globally, an d can be enabled or disabled on a per port basis in p1cr1[7] and p2cr1[7]. the rate is based on a 67ms interval for 100bt and a 670 ms interval for 10bt. at the beginning of each interval, the counter is cleared to zero and the rate limit mechanism starts t o count the number of bytes during the interval. the rate definition is described in sgcr3[2:0][15:8]. the default setting is 0x63 (99 decimal). this is equal to a rate of 1%, calculated as follows: 148,800 frames/sec 67 ms/interval 1% = 99 frames/interval (approx.) = 0x63 note : 148,800 frames/sec is based on 64 - byte block of packets in 100base - t with 12 bytes of ipg and 8 bytes of preamble between two packets. port individual mac a ddress and source port filtering the ksz8463 can pr ovide individual mac addresses for port 1 and port 2. they can be set at registers 0x0b0h - 0x0b5h and 0x0b6 - 0x0bb. received packets can be filtered (dropped) if their source address matches the mac address of port 1 or port 2. this feature can be enabled by setting bits [11:10] in the p1cr1 or p2cr1 registers. one example of usage is that a packet will be dropped after it completes a full round trip within a ring network .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 40 revision 1.0 switch block switching engine the ksz8463 features a high - performance switching engine to move data to and from the mac?s packet buffers. it operates in store and forward mode, while the efficient switching mechanism reduces overall latency. the switching engine has a 32kbyte internal frame buffer. this resource is shared between all the po rts. there are a total of 256 buffers available. each buffer is sized at 128 bytes. spanning tree support to support spanning tree, the host port is the designated port for the processor. the other ports ( port 1 and port 2) can be configured in one of the five spanning tree states via ?transmit enable?, ?receive enable? and ?learning disable? register settings in registers p1cr2 and p2cr2 for port s 1 and 2, respectively. table 2 shows the setting and software actions taken for each of the five spanning tree states. table 2 . spanning tree states disable state port setting software action the port should not forward or receive any packets. learning is disabled. xmit enable = ?0?, receive enable = ?0?, learning disable = ?1? the processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the ? stati c mac t able ? with ?overriding bit? set) and the processor should discard those packets. address learning is disabled on the port in this state. blocking state port setting software action only packets to the processor are forwarded. xmit enable = ?0?, r eceive enable = ?0?, learning disable = ?1? the processor should not send any packets to the port(s) in this state. the processor should program the ? static mac t able ? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit should also be set so that the switch will forward those specific packets to the processor. address learning is disabled on the port in this state. listening state port setting software action only packets to and from the processor are forwarded. learning is disabled. xmit enable = ?0?, receive enable = ?0?, learning disable = ?1? the processor should program the ? static mac t able ? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state. address learning is disabled on the port in this state. learning state port setting software action only packets to and from the pro cessor are forwarded. learning is enabled. xmit enable = ?0?, receive enable = ?0?, learning disable = ?0? the processor should program the ? static mac t able ? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit shoul d be set so that the switch will forward those specific packets to the processor. the processor may send packets to the port(s) in this state. address learning is enabled on the port in this state. forwarding state port setting software action packets are forwarded and received normally. learning is enabled. xmit enable = ?1?, receive enable = ?1?, learning disable = ?0? the proc essor programs the ?static mac t able? with the entries that it needs to receive (for example, bpdu packets). the ?overriding? bit is set so that the switch forwards those specific packets to the processor. the processor can send packets to the port(s) in this state. address learning is enabled on the port in this state.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 41 revision 1.0 rapid spanning tree support there are three operational s tates assigned to each port for rstp (discarding, learning, and forwarding): ? discarding ports do not participate in the active topology and do not learn mac addresses. ? discarding state: the state includes three states of the disable, blocking and listenin g of stp. ? port setting: xmit enable = ?0?, receive enable = ?0?, learning disable = ?1?. discarding state software action: the host processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the static table with ?overriding bit? set) and the processor should discard those packets. when the port?s learning capability (learning disable = ?1?) is disabled, setting bits [ 10:9] in the sgcr8 register will rapidly flush th e port related entries in the dynamic mac table and static mac table. the processor is connected to port 3 via the host interface. address learning is disabled on the port in this state. learning state port s in ?learning s tates? learn mac addresses, but do not forward user traffic. learning state: only packets to and from the processor are forwarded. learning is enabled. port setting for learning state: transmit enable = ?0?, receive enable = ?0?, learning disable = ?0?. software action: the processor shou ld program the static mac table with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packet s to the port(s) in thi s state ( see ? tail tagging mode ? sub - section for details ). address learning is enabled on the port in this state. port s in ? forwarding states ? fully participate in both data forwarding and mac learning. forwarding state forwarding state: packets are forwarded and received normally. learning is enabled. port setting: transmit enable = ?1?, receive enable = ?1?, learning disable = ?0?. software ac tion: the processor should program the static mac table with the entries that it needs to receive (e.g., bpdu packets). the ?overriding? bit should be set so that the switch will forward those specific packets to the processor. the processor may send packe t s to the port(s) in this state ( see ? tail tagging mode ? sub - section for details ) . address learning is enabled on the port in this state. rstp uses onl y one type of bpdu called rstp bpdus. they are similar to stp c onfiguration bpdus with the exception of a type field set to ?version 2? for rstp and ?version 0? for stp, and a flag field carrying additional information. tail tagging mode the t a il t ag is on ly seen and used by the port 3 host interface, which should be connected to a processor. it is an effective way to retrieve the ingress port information for spanning tree protocol, igmp snooping, and other applications . b it s [ 1 : 0 ] in the one byte tail tagg ing are used to indicate the source/destination port in port 3. b its [ 3 : 2 ] are used for priority setting of the ingress frame in port 3 . other bits are not used. the tail t ag fe ature is enabled by setting bit[ 8 ] in the sgcr8 register. figure 7 . tail tag frame format
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 42 revision 1.0 table 3 . tail tag rules ingress to port 3 (host - > ksz8463) b it [1 : 0] destination port 00 normal (address look up) 01 port 1 10 port 2 11 port 1 and port 2 bit [3 : 2] frame priority 00 priority 0 01 priority 1 10 priority 2 11 priority 3 egress from port 3 (ksz8463 -> host) b it [0] source port 0 port 1 1 port 2 igmp support for internet group management protocol (igmp) support in layer 2, the ksz8463 provides two components: ?igmp? snooping the ksz8463 traps igmp packets and forwards them only to the processor (host port). the igmp packets are identified as ip packets (either ethernet ip packets, or ieee 802.3 snap ip packets) with ip version = 0x4 and protocol ve rsion number = 0x2. ?multicast address insertion? in the static mac table once the multicast address is programmed in the static mac address table , th e multicast session is trimmed to the subscribed ports, instead of broadcasting to all ports. to enable igmp support, set bit[14] to ?1? in the sgcr2 register. also, tail tagging mode needs to be enabled, so that the processor knows which port the igmp packet was received on. this is achieved by setting bit [8] to ?1? in the sgcr8 register. ipv6 mld snooping the ksz8463 traps ipv6 multicast listener dis covery (mld) packets and forwards them only to the processor (host port). mld snooping is controlled by sgcr2, bit[13] (mld snooping enable) and sgcr2 bit[12] (mld option). setting sgcr2 bit[13] causes the ksz8463 to trap packets that meet all of the follo wi ng conditions: ? ipv6 multicast packets ? hop count limit = ?1? ? ipv6 next header = ?1?or ?58? (or = ?0? with hop - by - hop next header = ?1? or ?58?) ? if sgcr2[12] = ?1?, ipv6 next header = ?43?, ?44?, ?50?, ?51?, or ?60? (or = ?0? with hop - by - hop next header = ? 43?, ?44?, ?50?, ?51?, or ?60?)
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 43 revision 1.0 port mirroring support ksz8463 supports ? port mirroring ? comprehensively as: ?receive only? mirror - on - a - port all the packets received on the port are mirrored on the sniffer port. for example, 1 is programmed to be ?receive sniff? and the host p ort i s programmed to be the ?sniffer ?. a packet received on port 1 is destined to port 2 after the internal lookup. the ksz8463 forwards the packet to both port 2 and the host port. the ksz8463 can option ally even forward ?bad? received packets to the ?sniffer port?. ?transmit only? mirror - on - a - port all the packets transmitted on the port are mirrored on the sniffer port. for example, port 1 is programmed to be ?transmit sniff? and the host port is program med to be the ?sniffer port?. a packet received on port 2 is destined to port 1 after the internal lookup. the ksz8463 forwards the packet to both port 1 and the host port. ?receive and transmit? mirror - on - two - ports all the packets received on port a and t ransmitted on port b are mirrored on the sniffer port . to turn on the ?and? feature, set register sgcr2, bit 8 to ?1?. for example, port 1 is programmed to be ?receive sniff?, port 2 is programmed to be ?transmit sniff?, and the host port is programmed to be the ?sniffer port?. a packet received on port 1 is destined to port 2 after the internal lookup. the ksz8463 forwards the packet to both port 2 and the host port. multiple ports can be selected as ?receive sniff? or ?transmit sniff?. in addition, any po rt can be selected as the ?sniffer port?. all these per port features can be selected through registers p1cr2, p2cr2, and p3cr2 for port s 1, 2, and the host port, respectively. ieee 802.1q vlan support the ksz8463 supports 16 active vlans out of the 4096 p ossible vlans specified in the ieee 802.1q specification. ksz8463 provides a 16 - entry vlan table, which converts the 12 - bits vlan id (vid) to the 4 - bits filter id (fid) for address lookup. if a non - tagged or null - vid - tagged packet is received, the ingress port default vid is used for lookup. in vlan mode, the lookup process starts with vlan table lookup to determine whether the vid is valid. if the vid is not valid, the packet is dropped and its address is not learned. if the vid is valid, the fid is retrie ved for further lookup. the fid + destination address (fid+da) are used to determine the destination port . the fid + source address (fid+sa) are used for address learning (see table 4 and table 5 ). advanced vlan features are also sup port ed in the ksz8463 , such as ?vlan ingress filtering? and ?discard non pvid? defined in bits [14:13] of p1cr2, p2cr2 and p3cr2 registers. these features can be controlled on per port basis. table 4 . fid + da lookup in vlan mode da found in static mac table? use fid flag? fid match? da+fid found in dynamic mac table? action no don?t care don?t care no broadcast to the membership port s defined in the vlan table bits [18:16]. no don?t care don?t care yes send to the destination port defined in the dynamic mac address table bits [53:52] . yes 0 don?t care don?t care send to the destination port (s) defined in the static mac address table bits [50:48]. yes 1 no no broadcast to the membership port s defined in the vlan table bits [18:16]. yes 1 no yes send to the destination port defined in the dynamic mac address table bits [53:52] . yes 1 yes don?t care send to the destination port (s) defined in the static mac address table bits [50:48].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 44 revision 1.0 table 5 . fid + sa lookup in vlan mode fid+sa found in dynamic mac address table ? action no learn and add fid+sa to the dynamic mac address table . yes update time stamp. quality - of - service ( qos ) priority sup port the ksz8463 provides quality - of - service (qos) for applications such as voip and video conferencing. the ksz8463 offer 1, 2, and 4 priority queues option per port . this is controlled by bit[0] and bit[8] in p1cr1, p2cr1 and p3cr1 registers as shown below: ? bit[0], bit [8] = ?00? egress port is a single output queue as default. ? bit[0], bit [8] = ?01? egress port can be split into two priority transmit queues. (q0 and q1) ? bit[0], bit [8] = ?10? egress port can be split into four priority transmit queues. (q0, q1, q2 and q3) the four priority transmit queues is a new feature in the ksz8463 . queue 3 is the highest priority queue and queue 0 is the lowest priority queue. if a port 's transmit queue is not split, high priority and low priority packets have equal priority in the transmit queue. there is an additional option for every port via bits[15,7] in the p 1 itxqrcr1, p1txqrcr2 , p2txqrcr1, p2txqrcr2, p3txqrcr1, and p3txqrcr2 registers to select either always to deliver high priority packets first or use weighted fair queuing for the four priority queues scale by 8:4:2:1. port - based pri ority with port - based priority, each ingress port is individually classified as a specific priority level . all packets received at the high - priority receiving port are marked as high priority and are sent to the high - priority transmit queue if the correspo nding transmit queue is split. bits [4:3] of registers p1cr1, p2cr1, and p3cr1 are used to enable port - based priority for port s 1, 2, and the host port , respectively. 802.1p - based priority for 802.1p - based priority, the ksz8463 examines the ingress (incomin g) packets to determine whether they are tagged. if tagged, the 3 - bit priority field in the vlan tag is retrieved and used to look up the ?priority mapping? value, as specified by the register sgcr6. the ?priority mapping? value is programmable. figure 8 illustrates how the 802.1p priority field is embedded in the 802.1q vlan tag. figure 8 . 802.1p priority field format
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 45 revision 1.0 802.1p - based priority is enabled by bit[5] of registers p1cr1, p2cr1, and p3cr1 for port s 1, 2, and the host port , respectively. the ksz8463 provides the option to insert or remove the priority tagged frame's header at each individual egress port . this hea der, consisting of the 2 bytes vlan protocol id (vpid) and the 2 bytes tag control information field (tci), is also referred to as the 802.1q vlan tag. tag insertion is enabled by bit[2] of registers p1cr1, p2cr1, and p3cr1 for port s 1, 2, and the host por t , respectively. at the egress port , untagged packets are tagged with the ingress port?s default tag. the default tags are programmed in register sets p1vidcr, p2vidcr, and p3vidcr for port s 1, 2, and the host port , respectively. the ksz8463 does not add t ags to already tagged packets. tag removal is enabled by bit[1] of registers p1cr1, p2cr1, and p3cr1 for port s 1, 2, and the host port , respectively. at the egress port , tagged packe ts will have their 802.1q vlan t ags removed. the ksz8463 will not modify u ntagged packets. the crc is recalculated for both tag insertion and tag removal. 802.1p priority field re - mapping this is a qos feature that allows the ksz8463 to set the ?user priority ceiling? at any ingress port . if the ingress packet?s priority field h as a higher priority value than the default tag?s priority field of the ingress port , the packet?s priority field is replaced with the default tag?s priority field. the ?user priority ceiling? is enabled by bit[3] of registers p1cr2, p2cr2, and p3cr2 for p ort s 1, 2, and the host port , respectively. diffserv - b ased priority diffserv - based priority uses the tos registers shown in the tos priority control registers . the tos priority control registers impl ement a fully decoded, 128 - bit differentiated services code p oint (dscp) register to determine packet priority from the 6 - bit tos field in the ip header. when the most significant 6 bits of the tos field are fully decoded, the resultant of the 64 possibilities is compared with the corresponding bits in the dscp register to determine priority. rate limiting sup port the ksz8463 suppor ts hardware rate lim iting from 64 kbp s to 99mbps (refer to ingress or egress data rate limits ), independently on the ?receive side? and on the ?transmi t side? as per port basis. for 10 - base t, a rate setting above 10mbps means the rate is not limited. on the receive side, the data receive rate for each priority at each port can be limited by setting up ingress rate control registers. on the transmit side, the data transmit rate for each priority queue at each port can be limited by setting up egress rate control registers. the size of each frame has options to include minimum interframe gap (ifg) or preamble byte, in addition to the data field (from packet da to fcs). for ingress rate limiting, ksz8463 provides options to selectively choose frames from all types, multicast, broadcast, and flooded unicast frames. the ksz8463 counts the data rate from those selected type of frames. packets are dropped at the ingress port when the data rate exceeds the specified rate limit. for egress rate limiting, the leaky b ucket algorithm is applied to each output priority queue for shaping output traffic. inter frame gap is stretched on a per frame base to generate smooth, non- burst egress traffic. the throughput of each output priority queue is limited by the egress rate specified. if any egress queue receives more traffic than the specified egress rate throughput, packets may be accumulated in the output queue and packet memory. after the memory of the queue or the port is used up, packet dropping or flow control will be triggered. as a result of congestion, the actual egress rate may be dominated by flow control/dropping at the ingress end, and may be therefore slightly l ess than the specified egress rate. to reduce congestion, it is a good practice to make sure the egress bandwidth exceeds the ingress bandwidth.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 46 revision 1.0 mac address filtering function when a packet is received, the destination mac address is looked up in both t he static and dynamic mac address tables. if the address is not found in either of these tables, then the destination mac address is ?unknown? . by default, an unknown unicast packet is forwarded to all ports except the port at which it was received. an optional feature makes it possible to specify t he port or ports to which to forward unknown unicast packets. it is also p ossible to specify no ports , meaning that unknown unicast packets will be discarded . this feature is enabled by setting bit[7] in sgcr7 . the unicast mac address filtering function is useful in preventing the broadcast of unicast packets that could degrade the quality o f this port in applic ations such as voice over internet protocol (voip).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 47 revision 1.0 ieee 1588 precision time protocol (ptp) block the ie ee 1588 precision time p rotocol (ptp) provides a method for establishing synchronized time across nodes in an ethernet networking environment. the ksz8463 implements v2 (2008) of the ieee 1588 ptp specification. the ksz8463 3 - port switch implements the ieee 1588 ptp version 2 protocol. port 1 and port 2 can be programmed as either end - to - end ( e2e ) or peer - to - peer ( p2p ) transparent clock (tc) port s . i n addition , port 3 can be programmed as either slave or master ordinary clock (oc) port . ingress timestamp capture, egress timestamp recording, correction field update with residence time and link delay, delay turn - around time insertion, egress timestamp insertion, and checksum update are sup port ed . ptp frame filtering is implemented to enha nce overall system performance. delay adjustments are implemented to fine tune the synchronization. versatile event trigger outputs and timestamp capture inputs are implemented to meet various real time application requirements through gpio pins. the key f eatures of the ksz8463 implementation are as follows: ? both one - step and two - step transparent clock (tc) operations are sup port ed ? implementation of precision time clock per specification ? upper 16 bits of the second clock not implemented due to practical val ues of time ? both e2e and p2p tc are sup port ed on port 1 and port 2 ? both s lave and master oc are sup port ed on port 3 ? ptp m ulticast and u nicast frame are sup port ed ? trans port s of ptp over ipv4/ipv6 udp and ieee 802.3/ethernet are sup port ed ? both path delay request - response and peer delay mechanism are sup port ed ? precision time stamping of input signals on the gpio pins ? creation and delivery of clocks, pulses, or other unique serial bit streams on the gpio pins with respect to the precision tim e clock time. ieee 1588 defines two essential functions: the measurement of link and residence (switching) delays by using the delay_req/resp or pdelay_req/resp messages, and the distribution of time infor mation by using the sync/follow_ up messages. the 1588 ptp event messages are periodically sent from the g rand m aster in the network to all slave clock devices. link delays are measured by each slave node to all its link partners to compensate for the delay of ptp messages sent through the network . the 1588 ptp announce messages are periodically sent from the grandmaster(s) in the network to all slave clock devices. this information is used by each node to select a master clock using the ?best master clock? algorithm. 1588 ptp (version 2) defines two typ es of messages : event and general messages. these are summarized below and are sup port ed by the ksz8463: ? event messages (an accurate timestamp is generated at egress and ingress): ? sync (from m aster to s lave ) ? delay_req (from s lave to m aster ) ? pdelay_req (bet ween link partners for peer delay measurement) ? pdelay_resp (between link partners for peer delay measurement) general messages: ? follow_up (from master to slave) ? delay_resp (from master to slave) ? pdelay_resp_follow_up (between link partners for peer delay measurement) ? announce ? management ? signaling
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 48 revision 1.0 ieee 1588 ptp clock types the ksz8463 sup port s the following clock types: ? ordinary clock (oc) is defined as a ptp clock with a single ptp port in a ptp domain. it may serve as a source of time such as a master clock, or it may be a slave clock which synchronizes to another master clock. ? end - to - end transparent clock (e2e tc) is defined as a transparent clock that sup port s the use of the end - to - end delay measurement mechanism b etween a slave clock and the master clock. in this method, the e2e tc intermediate devices do not need to be synchronized to the master clock and the end slave node is directly synchronized to the master clock. the e2e tc/sc slave intermediate devices can also be synchronized to the master clock. note that the transparent clock is not a real clock that can be viewed on an oscilloscope but rather it is a mechanism by which delay are accounted for when trans port ing information across and through physical netw ork nodes. ? peer - to - peer transparent clock (p2p tc for version 2) is defined as a transparent clock, in addition to providing ptp event transit time information. p2p tc also provides corrections for the propagation delay between nodes (link partners) by usi ng pdelay_req ( p eer delay request) and pdelay_resp ( p eer delay response). in this method, the p2p tc intermediate devices can be synchronized to the master clock. a transparent clock (tc) is not part of the master - slave hierarchy. instead, it measures the resident time which is the time taken for a ptp message t o traverse the node. the p2p tc then provides this information to the clock receiving the ptp message. in addition, the p2p tc measures and passes on the link delay of the receiving ptp message. note that the transparent clock is not a real clock that can be viewed on an oscilloscope but rather it is a mechanism by which delay are accounted for when trans port ing information across and through physical network nodes. ? master c lock is defined as a clock which is used as the reference clock for the entire syste m. the ksz8463 can operate as a master c lock if needed. however, the quality of the clock signal will be limited by the quality of the crystal or oscillator used to clock the device. note : p2p and e2e tcs cannot be mixed on the same communication path. ieee 1588 ptp one - step or two - step clock operation the ksz8463 sup port s either 1 - step or 2 - step clock operation. ? one - step clock operation : a ptp message (sync) exchange that provides time information using a single event message which eliminates the need for a follow_up message to be sent. this one - step operation will eliminate the need for software to read the timestamp and to send a follow_up message. ? two - step clock operation : a ptp messages (sync/follow_up) that provides time information using the combi nation of an event message and a subsequent general message. the follow_up message carries a pr ecise estimate of the time the s ync message was placed on the ptp communication path by the sending node . ieee 1588 ptp best master clock selection the ieee 1588 ptp specification defines an algorithm based on the characteristics of the clo cks and system topology called best master clock (bmc) a lgorithm. bmc uses a nnounce messages to establish the synchronization hierarchy. the algorithm compares data from two clo cks to determine the better clock. each clock device continuously monitors the announce messages issued by the current master and compares the dataset to itself. the software controls this process. ieee 1588 ptp system time clock the system time c lock (stc ) in ksz8463 is a readable or writable ti me source for all ieee 1588 ptp - related functions and contains three counters: a 32- bit counter for s econds, a 30- bit counter for n anoseconds and a 32 - bit counter for s ub- nanoseconds ( u nit s of 2 - 32 ns). figure 9 shows the ptp clock.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 49 revision 1.0 figure 9 . ptp system clock overview the stc is clocked (incremented by 40ns or updated with sub ns carry info) every 40ns by a derivative of the 125mhz derived clock. the 30 - bit nanosecond counter will be numerically incremented by 40ns every 40ns. there is another 3 - bit phase counter that i s designed to indicate one of the five sub phases (0ns, 8ns, 16ns, 24ns, or 32ns) within the 40ns period. this provides finer resolution for the various messages and timestamps. the overflow for the 30 - bit nanosecond counter is 0x3b9aca00 (109) and the ove rflow for the 32 - bit sub - nanosecond counter is 0xffffffff. the system time clock does not sup port the upper 16 - bits of the seconds field as defined by the ieee 1588 ptp version 2 which specifies a 48 - bit seconds field. if the 32 - bit seconds counter overfl ows, it will have to be handled by software. note that an overflow of the seconds field only occurs every 136 years. the seconds value is kept track of in the ptp_rtc_sh and ptp_rtc_sl registers (0x608 ? 0x60b). the nanoseconds value is kept track of in th e ptp_rtc_nsh and ptp_rtc_nsl registers (0x604 ? 0x607). the ptp_rtc_phase clock register (0x60c ? 0x60d) is initialized to zero whenever the local processor writes to the ptp_rtc_nsl, ptp_rtc_nsh, ptp_rtc_sl, and ptp_rtc_sh registers. during normal oper ation when the stc clock is keeping synchronized real time, and not while it is undergoing any initialization manipulation by the processor to get it close to the real time, the ptp_rtc_phase clock register will be reset to zero at the beginning of the cur rent 40ns stc clock update interval. it will start counting at zero at the beginning of the 40ns period and every 8 ns it will be incremented. the information provided by the ptp_rtc_phase register will increase the accuracy of the various timestamps and s tc clock readings.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 5 0 revision 1.0 updating the system time clock the ksz8463 provides four mechanisms for updating the system time cl ock : ? directly set the time ? step time adjustment ? continuous time adjustment ? temporary time adjustment directly setting or reading the time directly setting the system time clock to a value is accomplished by setting a new time in the real time clock registers (ptp_rtc_sh/l, ptp_rtc_nsh/l and ptp_rtc_phase) and then setting the load ptp 1588 clock bit (ptp_load_clk). directly reading the system time clock is accomplished by setting the read ptp 1588 clock bit (ptp_read_clk). to avoid lower bits overflowing during reading the system time clock, a snapshot register technique is used. the value in the system time clock wi ll be saved into a snapshot register by setting the ptp_read_clk bit in ptp_clk_ctl, and then subsequent reads from ptp_rtc_s, ptp_rtc_ns, and ptp_rtc_phase will return the system time clock value. the cpu will add the ptp_rtc_phase value to ptp_rtc_s and ptp_rtc _ns to get the exact real time. step - time adjustment the system time clock can be incremented in steps if desired. the nanosecond value (ptp_rtc_nsh/l) can be added or subtracted when the ptp_step_adj_clk bit is set. the value will be added to the s ystem time clock if this action occurs while the ptp_step_dir bit = ?1?. the value will be subtracted from the system time clock if this action occurs while the ptp_step_dir bit = ?0?. the ptp_step_adj_clk bit is self - clearing. continuous time adjustment t he system can be set up to perform continuous time adjustment to the 1588 ptp clock. this is the mode that is anticipated to be used the most. this mode is overseen by the local processor and provides a method of periodically adjusting the count of the ptp clock to match the time of the master clock as best as possible. the rate registers (ptp_sns_rate_h and ptp_sns_rate_l) (0x610 ? 0x613) are used to provide a value by which the sub - nanosecond port ion of the clock is adjusted on a periodic basis. while con tinuous adjustment mode ( ptp_continu_adj_clk = ?1?) is selected every 40ns the sub - nanosecond value of the clock will be adjusted in either a positive or negative direction as determined by the ptp_rate_dir bit. the value will be positively adjusted if ptp _rate_dir = ?0? or negatively adjusted if ptp_rate_dir = ?1?. the rate adjustment allows for correction with resolution of 2 - 32 ns for every 40ns reference clock cycle , and it will be added to or subtracted from the system time clock on every reference cloc k cycle right after the write to ptp_snc_rate_l is done. to stop the continuous time adjustment, one can either set the ptp_continu_adj_clk = ?0? or the ptp_sns_rate_h/l value to zero. temporary time adjustment this mode allows for the continuous time adju stment to take place over a specified period of time only. the period of time is specified in the ptp_adj_dura_h/l registers. this mode is enabled by setting the ptp_temp_adj_clk bit to one. once the duration is reached, the increment or decrement will cea se. when the temporary time adjustment is done, the internal duration counter register (ptp_adj_dura_h/l) will stay at zero, which will disable the time adjustment. the local processor needs to set the ptp_temp_adj_clk to one again to start another tempora ry time adjustment with the reloaded value into the internal rate and duration registers. the ptp_adj_dura_l register needs to be programmed before ptp_adj_dura_h register. the ptp_adj_dura_l, ptp_adj_dura_h and ptp_sns_rate_l registers need to be programm ed before the ptp_sns_rate_h register. the temporary time adjustment will start after the ptp_temp_adj_clk bit is set to one. this bit is self - cleared when the adjustment is completed. software can read this bit to check whether the adjustment is still in progress.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 51 revision 1.0 ptp clock initialization during software initialization when the device is powering up, the ptp clock needs to be initialized in preparation for synchronizing to the master clock . the suggested order of tasks is to reset the ptp 1588 clock (rese t_ptp_clk = ?0?), load the ptp 1588 clock (ptp_load_clk = ?1?) with a value then enable the ptp 1588 clock (en_ptp_clk = ?1?). during the initial synchronization attempt, the system time clock may be a little far apart from the ptp master clock, so it most likely will require a step - time adjustment to get it closer. after that, the continuous time adjustment method or temporary time adjustment method may be the best options when the system time clock is close to being synchronized with the master clock. mo re details on the 1588 ptp system time clock controls and functions can be found in the register descriptions for registers 0x600 to 0x617. ieee 1588 ptp message processing the ksz8463 sup port s ieee 1588 ptp time synchronization when 1588 ptp mode and message detection are enabled in the ptp_msg_cfg_1 register (0x620 ? 0x621). different operations will be applied to ptp packet processing based on the setting of p2p or e2e in transparent clock mo de for port 1 and port 2, master or slave in ordinary clock mode for port 3 (host port ), one - step or two - step clock mode, and if the domain checking is enabled. for the ipv4/udp egress packet, the checksum can be updated by either re - calculating the two - by tes or by setting it to zero. for the ipv6/udp egress packet, the checksum is always updated. all these 1588 ptp configuration bits are in the ptp_msg_cfg_1/2 registers (0x620 ? 0x623). for a more detailed description of the 1588 ptp message processing con trol and function, please refer to the register descriptions in the register map at locations 0x620 to 0x68f. ieee 1588 ptp ingress packet processing the ksz8463 can detect all ieee 802.3 ethernet 1588 ptp packets, ipv4/udp 1588 ptp packets, and ipv6/udp 1 588 ptp packets by enabling these features in the ptp_msg_cfg_1 register (0x620 ? 0x621). upon detection of receiving a 1588 ptp packet, the device will capture the receive timestamp at the time when the start - of - frame delimiter (sfd) is detected . adjustin g the receive timestamp with the receive latency or asymmetric delay is the responsibility of the software. the hardware only takes these values into consideration when it updates the correction field in the ptp message header. likewise, the software needs to adjust the transmit timestamp with the transmit latency . both the ingress timestamp and the ingress port number will be embedded in the reserved fields of the 1588 ptp header. the embedded information will be used by the host to designate the destinati on port in the response egress packet, identify the direction of the master port , and to calculate the link delay and offset. the 1588 ptp packet will be discarded if the 1588 ptp domain field does not match the domain number in the ptp_domain_ver registe r (0x624 ? 0x625) or if the 1588 ptp version number does not match version number (either 1 or 2) in the ptp_domain_ver register (0x624 ? 0x625). packets with a version number of one will always be forwarded to port 1 or port 2, and not to port 3. the 1588 ptp packets that are not associated with packet messages in pairs (pdelay_ req with pdelay_resp, sync with follow_up, delay_req with delay_resp) can be filtered and not forwarded to port 3 if the corresponding enable bits are set in the ptp_msg_cfg_2 regi ster (0x0622 ? 0x623). the 1588 ptp version - 1 packet will be forwarded without being modified. ieee 1588 ptp egress packet processing the ingress timestamp, the trans port type of the 1588 ptp packet, the packet type (tagged or untagged), and the type of co rrection field update on the egress side are in the frame header and are accessible for modification by the egress logic in local switch packet memory. the 1588 ptp packet will be put in the egress queue of highest priority. from the 1588 ptp frame header inside the switch packet memory, the egress logic will get the correction field update instruction. the residence time, link delay in the ptp_p1/2_link_dly registers (0x646 ? 0x647 and 0x666 ? 0x667) or turn - around time might be added to the correction fie ld depending upon the type of 1588 ptp egress packet. the 1588 ptp packet received from port 3 (host port ) has the destination port information to forward as well as the timestamp information that will be used for updating the correction field in one - step clock operation.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 52 revision 1.0 this embedded information (in the reserved fields of 1588 ptp frame header) will be zeroed out before the egress packet is sent out to conform to the 1588 ptp standard. for one - step operation, the original timestamp will be inserted into the s ync packet. the egress timestamp of the sync packet will be latched in the p1/2_sync_ts registers (0x64c ? 0x64f and 0x66c ? 0x66f), the egress timestamps of delay_req, pdelay_req an d pdelay_resp will be latched in the p1/2_xdly_req_ts (0x648 ? 0x64b and 0x668 ? 0x6b) and p1/2_pdly_resp_ts registers (0x650 ? 0x653 and 0x670 ? 0x673). these latched egress timestamps will generate an interrupt to the host cpu and set the interrupt statu s bits in the ptp_ts_is register (0x68c ? 0x68d) if the interrupt enable is set in the ptp_ts_ie register (0x68e ? 0x68f). these captured egress timestamps will be used by the 1588 ptp software for link delay measurement, offset adjustment, and time calcu lation. the transmit delay value from the port 1 or port 2 timestamp reference point to the network connection point in the ptp_p1/2_tx_latency registers (0x640 ? 0x643) will be added to these value in the p1/2_sync_ts, p1/2_xdly_req_ts and p1/2_pdly_resp_ ts registers to get the egress timestamp with reference point to the network connection point. for transmit delay_req or pdelay_req packets, the value in the ptp_p1/2_asym_cor registers (0x644 ? 0x645 and 0x664 ? 0x665) will be subtracted from the correcti on field. ieee 1588 ptp event triggering and timestamping an event trigger output signal can be generated when the target and activation time matches the ieee1588 ptp system clock time. likewise, an event timestamp input can be captured from an external event input signal and the corresponding time on the ieee1588 ptp system clock will be captured. up to 12 gpio pins can be configured as either output signal when trigger target time is matching ieee 1588 ptp system clock time or monitoring input signal fo r external event timestamp. all event trigger outputs are generated by comparing the system clock time with trigger target time continuously to make sure time synchronization is always on - going. ieee 1588 ptp trigger output the ksz8463 sup port s up to 12 ev ent trigg er unit s w hich can output to any one of the 12 gpio pins by setting bits[3:0] in trig[1:12]_cfg_1 registers. multiple trigger unit s can be as signed to a single gpio pin at the same time as logical or?ed function allowing generation of more complex waveforms. also multiple trig ger unit s can be cascaded (one unit only at any time) to drive a single gpio pin to generate a long and repeatable bit sequence. each trigg er unit that is cascaded can be any signal type (edge, pulse, periodic, register - bits, and clock output). each trigger unit can be programmed to generate one time rising or falling edge (toggle mode), a single positive or negative pulse of programmable width, a periodic signal of programmable width, cycle time, bit - patterns to shift out from trig[1:12]_cfg_[1:8] registers, and each trigger unit can be programmed to generate interrupt of trigger output unit done and status in ptp_trig_ie/is registers. for each tri gger unit , the host cpu programs the desired output waveform, gpio pins, target time in trig[1:12]_tgt_ns and trig[1:12]_tgt_s registers that the activity is to occur, and enable the trigger output unit in trig_en register, then the trigger output signal w ill be generated on the gpio pin when the internal ieee 1588 ptp system time matches the desired target time. the device can be programmed to generate a pulse - per - second (pps) output signal. the maximum trigger output signal frequency is up to 12.5mhz. for a more detailed description of the 1588 ptp event trigger output control, configuration and function, please refer to the registers description in the register map from 0x200 to 0x397 locations. ieee 1588 ptp event timestamp input external event input s on the gpio pins can be monitored and timestamped with the resolution of 8ns. the external signal event can be monitored and detected as either rising edge, falling edge, positive pulse, or negative pulse by setting bits[7:6] in ts[1:12]_cfg registers. multi ple timestamp units can be cascaded or chained together to associate with a single gpio pin to detect a series of events. when event is detected, the timestamp will be captured in three fields: 32 - bit second field in ts[1:12]_smpl1/2_sh/l registers, 30 - bit nanosecond field in ts[1:12]_smpl1/2_nsh/l registers, and 3 - bit phase field in ts[1:12]_smpl1/2_sub_ns registers. second and nanosecond fields are updated every 25mhz clock cycle. the 3 - bit phase field is updated every 125mhz clock cycle and indica tes one of the five 8ns /125mhz clock cycles. the bit [14] in ts[1:12]_smpl1/2_nsh registers indicates the event timestamp input is either falling edge or rising edge.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 53 revision 1.0 the ksz8463 sup port s up to twelve timestamp input unit s which can input from any one of the twe lve gpio pins by setting bits[11:8] in ts[1:12]_cfg registers. the enable bits [11:0] in ts_en register are used to enable the timestamp unit s . the last timestamp unit ( unit 12) can sup port up to eight timestamps for multiple event detection and up to four pulses can be detected. the rest of the unit s ( units 1 ? 11) have two timestamps to sup port single edge or pulse detection. pulse width can be measured by the time difference between conse cutive timestamps. when an input event is detected, one of the bits [11:0] in ts_rdy register is asserted and will generate a timestamp interrupt if the ptp_ts_ie bit is set. the host cpu is also expected to read the timestamp status in the ts[1:12]_status registers to re port the number of detected event (either rising or falling edge) counts and overflow. in single mode, it can detect up to fifteen events at any single unit . in cascade mode, it can detect up to two events at units 1 ? 11 or up to eight eve nts at unit 12, and it can detect up to fifteen events for a ny unit as a tail unit . pulses or edges can be detected up to 25mhz. for more details on 1588 ptp event timestamp input control, configuration and function, please refer to the register descriptio ns for locations 0x400 to 0x5fd in the register map. ieee 1588 ptp event interrupts all ieee 1588 ptp event trigger and timestamp interrupts are located in the ptp_trig_ie/ptp_ts_ie enable registers and the ptp_trig_is/ptp_ts_is status registers. these int errupts are fully maskable via their respective enable bits and shared with other interrupts that use the intrn interrupt pin. these twelve event trigger output status interrupts are logical or?ed together and connected to bit[10] in the isr register. thes e twelve event trigger output enable interrupts are logical or?ed together and connected to bit[10] in the ier register. these twelve timestamp status interrupts are logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to bit[12] in the isr register. these twelve timestamp enable interrupts are logical or?ed together with th e rest of bits in this register and the logical or?ed output is connected to bit[12] in the ier register. ieee 1588 gpio the ksz8463 sup port s twelve gpio pins that can be used for general i/o or can be configured to utilize the timing of the ieee 1588 prot ocol. these gpio pins can be used for input event monitoring, outputting pulses, outputting clocks, or outputting unique serial bit streams. the gpio output pins can be configured to initiate their output upon the occurrence of a specific time which is bei ng kept by the onboard precision time clock. likewise, the specific time of arrival of an input event can be captured and recorded with respect to the precision time clock . refer to the general purpose and ieee 1588 input/output (gpio) section for details on the operation of the gpio pins.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 54 revision 1.0 general purpose and ieee 1588 input/output (gpio) overview the ksz8463 devices incorporate a set of general purpose input/output (gpio) pins that are configurable to meet the needs of many applications. the input and output signals on the gpio pins can be directly controlled via a local processor or they can be set up to work closely with the ieee 1588 protocol to create and/or monitor precisely timed signals which are synchronous to the precision time clock. some gpio pins are dedicated , while others are dual function pins . dual function pins are managed by the iomxsel register . table 6 provides a convenient summary of available gpio resources in the ksz8463 devices. table 6 . gpio pin reference ksz8463m l and ksz8463fml ksz8463r l and ksz8463fml gpio pin # function gpio pin # function gpio_0 48 gpio0 gpio_0 48 gpio0 gpio_1 49 gpio1 gpio_1 49 gpio1 gpio_2 52 gpio2 gpio_2 52 gpio2 gpio_3 53 gpio3 gpio_3 53 gpio3 gpio_4 54 gpio4 gpio_4 54 gpio4 gpio_5 55 gpio5 gpio_5 55 gpio5 gpio_6 58 gpio6 gpio_6 58 gpio6 gpio_7 59 p1led1/gpio7_mli gpio_7 38 gpio7_rli gpio_8 46 gpio8 gpio_8 46 gpio8 gpio_9 61 p2led1/gpio9_mli gpio_9 36 gpio9_rli gpio_10 62 p2led0/gpio10_mli gpio_10 37 gpio10_rli gpio_11 47 gpio11 gpio_11 47 gpio11 gpio pin functionality control the gpio_oen register is used to configure each gpio as an input or an output . each gpio pin has a set of registers associated with it that are configured to determine its functionality, and any relationship it has with other gpi o pins or registers. each gpio pin can be configured to output a binary signal state or a serial sequence of bits. each gpio pin can output a single serial bit pattern or it can be programmed to continuously loop and output the pattern until stopped. the d uration of the high and low periods within the sequential bit patterns can be programmed to meet the requirements of the application. the output can be triggered to occur at any time by the local processor writing to the correct register or it ca n be trigg ered by the local ieee precision timing protocol clock being equal to an exact time. the local processor can interrogate any gpio pin at any time or the value of the ieee precision time protocol clock can be captured and recorded when the specified event o ccurs on any of the gpio pins. the control and output of the gpio pins can be cascaded to create complex digital output sequences and waveforms. last ly, the unit s can be pr ogrammed to generate an interrupt on specific conditions. the control structure for the twelve gpio pins are organized into two separate units called the trigge r output unit s (tou) and the timestamp in put unit s (tsu) . there are twelve tous and twelve tsus which can be used with any of the gpio pin s . there are 32 control bytes for each o f the two unit s to control the functionality. the depth of control is summarized in table 7 .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 55 revision 1.0 table 7 . trigger output unit s and timestamp input unit s summary trigger output unit s timestamp input unit s 32 bytes of parameters 32 bytes of parameters trigger patterns: detection: negative edge, positive edge, negative pulse, positive pulse, negative period, positive period, register output shift negative or positive edges negative or positive pulses pulse width: two edge/one pulse (two timestamps) detection capability (timestamp unit s 10:0) 16- bit counter @ 8ns each (524288 ns, maximum) cycle width: eight edge/four pulse (eight timestamps) detection (timestamp unit 11) 32- bit counter @ 1ns each (4.29 seconds, maximum) cycle count: cascadable to detect multiple edges 16- bit counter (0 = infinite loop) total cascade mode cycle time: 32- bit counter @ 1ns each shift register: 16- bits (only for register shift output mode) cascadable to generate complex waveforms gpio pin control register layout most of the registers used to control the t imestamp unit s and the trigger outp ut unit s are d uplicated for each gpio pin. there are a few registers which are associated with all the overall functionality of all the gpio pins or only specific gpio pins. these are summarized in table 8 . table 8 . gpio registers affecting either all or specific unit s register name register location related to which trigger output unit s or timestamping unit s trigger error register ? trig_err 0x200 ? 0x201 all trigger output unit s . trigger active register ? trig_active 0x202 ? 0x203 all trigger output unit s. trigger done register ? trig_done 0x204 ? 0x205 all trigger output unit s. trigger enable register ? trig_en 0x206 ? 0x207 all trigger output unit s. trigger sw reset register ? trig_sw_rst 0x208 ? 0x209 all trigger output unit s. trigger unit 12 output pps pulse - width register ? trig12_pps_width 0x20a ? 0x20b trigger output unit 1, 12. timestamp ready register ? ts_rdy 0x400 ? 0x401 all trigger output unit s. timestamp enable register ? ts_en 0x402 ? 0x403 all trigger output unit s. timestamp software reset register ? ts_sw_rst 0x404 ? 0x405 all trigger output unit s.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 56 revision 1.0 figure 10 . trigger output unit organization and associated registers
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 57 revision 1.0 figure 11 . timestamp input unit organization and associated registers gpio trigger output unit and timestamp unit interrupts the trigger output units and the timestamp unit s can be pro grammed to generate interrupts when specified events occur. the interrupt control structure is shown in figure 12 and figure 13 .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 58 revision 1.0 figure 12 . trigger unit interrupts figure 13 . timestamp unit interrupts
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 59 revision 1.0 using the gpio pins with the trigger output unit s the twelve trigger outpu t units (tou) can be used to generate a variety of pulses, clocks, waveforms, and data streams at user - selectable gpio pins. the tous will generate the user - specified output starting at a specific time with respect to the ieee 1588 precision time clock. this section provides some information on configuring the tous to generate specific types of output. in the information below, the value ?x? represents one of the twelve tous. since this area of the device is very flexible and powerful, please reference application note anlan203 for additional information on creating specific types of wavefo rms and utilizing this feature. when using a single tou to control multiple gpio pins, there are several details of functionality that must be taken into account. when switching between gpio pins, the output value on those pins can be affected. if a tou changes the gpio pin level to a high va lue, writing to this units configuration register to change the addressed gpio pin to a different one will cause the hardware to drop the level in the previous gpio pin and set the new gpio pin to a high value. to prevent the second gpio pin from going hig h immediately, the tou must be reset prior to programming in a different gpio pin value. creating a low - going pulse at a specific time specifying the time the desired trigger time will be set in trigx_tgt_nsh, trigx_tgt_nsl, trigx_tgt_sh, and trigx_tgt_sl registers. specifying the pulse parameters trigx_cfg_1[6:4] = ?010? for negative pulse generation. trigx_cfg_2[15:0] = pulse width where each unit is 8 ns. associate this trigger output unit to a specific gpio pin trigx_cfg_1[3:0] = selects gpio pin to use . set up interrupts if needed if it is desired to get notification that the trigger output event occurred set up the following registers. trigx_cfg_1, bit[8] (trigger notify) = ?1? is one requirement for enabling interrupt on done or error. set the corresponding trigger unit interrupt enable bit in the ptp_trig_ie register. enabling the trigger output unit set the corresponding trigger unit enable bit in the trig_en register. notes : be aware that for a low - going pulse in non - cascaded mode (s ingle mode), the output will be driven by the unit to a high level when the trigger unit is enabled. in cascade mode, the output will be driven by the unit to the high state 8 ns prior to the programmed trigger time. creating a high - going pulse at a specifi c time specifying the time the desired trigger time will be set in trigx_tgt_nsh, trigx_tgt_nsl, trigx_tgt_sh, and trigx_tgt_sl registers. specifying the pulse parameters trigx_cfg_1[6:4] = ?011? for positive pulse generation. trigx_cfg_2[15:0] = p ulse w idth where each unit is 8 ns. associate this trigger output unit to a specific gpio pin trigx_cfg_1[3:0] = selects gpio pin to use.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 60 revision 1.0 set up interrupts if needed if it is desired to get notification that the trigger output event occurred set up the following registers. trigx_cfg_1, bit[8] (trigger notify) = ?1? is one requirement for enabling interrupt on done or error. set the corresponding trigger unit interrupt enable bit in the ptp_trig_ie register. enabling the trigger output unit set the corresponding t rigger unit e nable bit in the trig_en register. notes : be aware that for a high - going pulse in non - cascaded mode (single mode), the o utput will be driven by the unit to a low level when the trigger unit is enabled. in cascade mode, the output will be driv en by the unit to the low state 8 ns prior to the programmed trigger time. creating a free running clock source specifying the time typically there is no need to set up a desired trigger time with respect to a free running clock. there are two ways that the free ru nning clock can be started. set up a desired trigger time in the trigx_tgt_nsh, trigx_tgt_nsl, trigx_tgt_sh, and trigx_tgt_sl registers. after parameters have been set up, start the clock by se tting the trigger now bit, bit [9] , in the trigx_cfg_1 register. specifying the clock parameters trigx_cfg_1[6:4] = ?101? for generating a positive periodic signal . high part of cycle defined by bits[15:0] in the trigx_cf g _2 register. each unit is 8 ns. cycle width defined by bits[15:0] in trigx_cfg_3 and trigx_cfg_4 registers. each unit is 1 ns. continuous clock by setting trigx_cfg_5, bits[15:0] = ?0?. associate this trigger output unit to a specific gpio pin trigx_cfg_1[3:0] = selects gpio pin to use. set up interrupts if needed if it is desired to get no tification that the trigger output event occurred set up the following registers. trigx_cfg_1, bit[8] (trigger notify) = ?1? is one requirement for enabling interrupt on done or error. set the corresponding trigger unit interrupt enable bit in the ptp_trig _ie register. enabling the trigger output unit set the corresponding trigger unit enable bit in the trig_en register. note : because the frequencies to be generated are based on the period of the 125 mhz clock, there are some limitations that the user must be aware of. certain frequencies can be created with unvarying duty cycles. however, other frequencies may incur some variation in duty cycle. ther e are methods of utilizing the trigger unit 2 c l ock edge output s elect bit ( bit [7] in of reg. 0x248 ? 0x249) and gpio1 to contr ol and minimize the variances.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 61 revision 1.0 creating finite length periodic bit streams at a specific time this example implies that a uniform clock will be generated for a specific number of clock cycles : specifying the time the desired trigger ti me will be set in trigx_tgt_nsh, trigx_tgt_nsl, trigx_tgt_sh, and trigx_tgt_sl registers. specifying the finite length periodic bit stream parameters trigx_cfg_1[6:4] = ?101? for generati ng a positive periodic signal. high part of cycle defined by bits[ 15:0] in the trigx_cf g _2 register. each unit is 8 ns. cycle width defined by bits[15:0] in trigx_cfg_3 and trigx_cfg_4 registers. each unit is 1 ns. finite length count established by setting trigx_cfg_5, bits[15:0] = ?number of cycles?. each unit is one cyc le. associate this trigger output unit to a specific gpio pin trigx_cfg_1[3:0] = selects gpio pin to use. set up interrupts if needed if it is desired to get notification that the trigger output event occurred set up the following registers. trigx_cfg_1, bit[8] (trigger notify) = ?1? is one requirement for enabling interrupt on done or error. set the corresponding trigger unit interrupt enable bit in the ptp_trig_ie register. enabling the trigger output unit set the corresponding trigger unit enable bit in the trig_en register. creating finite length non - uniform bit streams at a specific time generation of a finite length non - uniform waveform which is a multiple of the bit pattern stored in the data storage register. specifying the time the desired trigger time will be set in trigx_tgt_nsh, trigx_tgt_nsl, trigx_tgt_sh, and trigx_tgt_sl registers. specifying the finite length non - uniform bit stream parameters trigx_cfg_1[6:4] = ?110? for generating signal based on contents of data register. 16- bit pattern st ored in trigx_cfg_6 register. bit width defined by bits[15:0] in trigx_cfg_3 and trigx_cfg_4 registers. each unit is 1 ns. bit length of finite pattern is established by shifting the data register ?n? times. set trigx_cfg_5, bits[15:0] = ?n?. associate this trigger output unit to a specific gpio pin trigx_cfg_1[3:0] = selects gpio pin to use. set up interrupts if needed if it is desired to get notification that the trigger output event occurred set up the following registers. trigx_cfg_1, bit[8] (trigger notify) = ?1? is one requirement for enabling interrupt on done or error. set the corresponding trigger unit interrupt enable bit in the ptp_trig_ie register. enabling the trigger out put unit set the corresponding trigger unit enable bit in the trig_en reg ister.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 62 revision 1.0 creating complex waveforms at a specific time complex waveforms can be created by combining the various functions available in the trigger output units using a method called ?cascading? . figure 14 illustrates the generation of a compl ex waveform onto one gpio pin. t rigger output unit 1 (tou1) and trigger output unit 2 (tou2) are cascaded to produce the complex waveform. cascading allows multiple outputs to be sequentially output onto one gpio pin. in figure 14 , the waveform created by tou1 is output first on the selected gpio pin when the indicated tou1 trigger time is reached. the value in trig1_cfg7 and trig1_cfg8 will be added to the tou1 trigger time and the next tou1 output will occur at that time. meanwhi le, tou2, will operate in the same manner; outputting its waveform at tou2 trigger time and then outputting again at a time trig2_cfg7 and trig2_cfg8 later. the trigx_cfg7 and 8 register values must be the same for all tous that are cascaded together. the number of times tou1 and tou2 will be output will depend on the cycle times programmed into the trig1_cfg6 and trig2_cfg6 registers. care must be taken to select the correct values so as to avoid erroneous overlap. additional steps are required in setting up cascaded tous: ? specifying which trigger output unit in the cascade is the last unit called the tail u nit . ? the last trigger output unit in a cascade setup should have its tail bit set to ?1?.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 63 revision 1.0 figure 14 . complex waveform generation using cascade mode
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 64 revision 1.0 using the gpio pins with the timestamp input units the twelve timestamp input units (tsu) can be set up to capture a variety of inputs at user selectable gpio pins. the current time of the precision time cl ock time will be captured and stored at the time in which the input event occurs. this section provides some information on configuring the timestamp input units . in the information below, the value ?x? represents one of the twelve timestamp input unit s . s ince this area of the device is very flexible and powerful, it is advised that you contact your micrel representative for additional information on capturing specific types of wavefo rms and utilizing this feature. timestamp value each timestamp input nit can capture two sampled values of timestamps . these first two values remain until read, even if more events occur . the timestamp value captured consists of three parts which a re latched in three registers. sample #1, the seconds value; tsx_smpl1_sh, tsx_s mpl1_sl sample #1, the nano seconds value; tsx_smpl1_nsh, tsx_smpl1_nsl sample #1, the sub - nano seconds value; tsx_smpl1_sub_ns sample #2, the seconds value; tsx_smpl2_sh, tsx_smpl2_sl sample #2, the nano seconds value; tsx_smpl2_nsh, tsx_smpl2_nsl sample #2, the sub - nano seconds value; tsx_smpl2_sub_ns the actual value in tsx_smpl1/2_sub_ns is a binary value of 0 through 4 which indicates 0ns, 8ns, 16ns, 24ns, or 32ns. note that the processor needs to add this value to the seconds and nanoseconds value to get the closest tru e value of the timestamp event. number of timestamps available each timestamp inpu t unit can capture two events o r two timestamps values. note that the exception to this is tsu12. tsu12 can capture eight events and thus has eight sample time registers (smpl1 thru smpl8) allowing for more robust timing acquisition in one tsu. note that the amount of samples for any given gpio pin can be increased by cascading time stamp unit . when tsus are cascaded, the incoming events are routed to a sequenti ally established order of tsus for capture. for example, you can cascade tsu12, and tsu 1 - 4 to be able to capture twelve timestamps off of one gpio pin. cascading is set up in the tsx_cfg registers. events that can be c apture d the timestamp input units ca n capture rising edges and falling edges. in this case, the timestamp of the event will be captured in the sample #1 timestamp registers. a pulse can be captured if rising edge detection is combined with falling edge detection. in this case, one edge will be captured in the sample #1 timestamp registers and the other edge will be captured in the sample #2 timestamp registers. this functionality is programmed in the tsx_cfg register for each timestamp unit . timestamping a n incoming low - going edge specifying the edge parameters tsx_cfg bit [6] = ?1? associate this time s tamp unit to a specific gpio pin tsx_cfg bits[ 11:8] = selected gpio pin # set u p interrupts if needed set the corresponding timestamp unit interrupt enable bit in the ptp_ts_ie register. enabling the time s tamp unit set the corresponding timestamp unit enable bit in the ts_en register. timestamping a n incoming high - going edge
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 65 revision 1.0 specifying the edge parameters tsx_cfg bit [7] = ?1? associate this time s tamp unit to a specific gpio pin tsx_cfg b its[ 11:8] = selected gpio pin # set u p interrupts if needed set the corresponding timestamp unit interrupt enable bit in the ptp_ts_ie register. enabling the time s tamp unit set the corresponding timestamp unit enable bit in the ts_en register. timestamping a n i ncoming low - going pulse or high - going pulse specifying the edge parameters tsx_cfg bit [7] = ?1? tsx_cfg bit [6] = ?1? associate this time s tamp unit to a specific gpio pin tsx_cfg bits[ 11:8] = selected gpio pin # set u p interrupts if neede d set the corresponding timestamp unit interrupt enable bit in the ptp_ts_ie register. enabling the time s tamp unit set the corresponding timestamp unit enable bit in the ts_en register.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 66 revision 1.0 device clocks a 25mhz clock source on x1/x2 is required for mii oper ation. the rmii 50mhz clock can either be derived from the 25mhz x1/x2 reference, or is received from an external source. if an external 50mhz clock is used for rmii , then a local 25mhz crystal or clock oscillator is not required. there are a number of pins with clock related functions on this device. table 9 summarizes those pins and the area of usage and i f they are related to 25mhz, 50 mhz, rmii, or mii clocking. table 9 . device clocks and related pins clock signal name pin # usage strapping option information x1, x 2 18, 19 the x1 and x2 pins are used to input a clock which is used to clock all of the circuits within the device. mii ? clocking choices - 25 mhz crystal connected between x1, x2 - 25 mhz oscillator connected to pin x1 only . x2 shall be unconnected. rmii ? clocking choices - either connection specified above for x1 and x2 with other control bits and pins configured as specified in table 17 to produce the required 50 mhz output on refclk_o. refclk_o externally connected to refclk_i . - 50mhz supplied on refclk_i pin from external source. x1 and x2 unconnected . oth er control bits and pins configured as specified in table 17. refer also to x1, x2 pin descriptions. the spi_do pin ( pin 41) is used to select if a 25 mhz cloc k on the x1 and x2 pins or a 50 mhz clock on the refclk_i pin will be used as the source of a ll rmii clocking. other control bits and control pins are used to determine other attributes of the rmii/mii clocking scheme. refer to table 17 for m ore information on the control bits and pins. refer to the strapping options section. tx_clk/refclk_ i 27 these four pins are used for the c locking and configuration of the mii and rmii interfaces . mii - 25 mhz clocks are output on tx_clk and rx_clk. rmii - a 50mhz clock must be received on refclk_i. this comes either from an external source or via external connection from refclk_o. refer to table 17 for details on the usage of these signal pins. txd3/en_refclk_o 23 rxd3/refclk_o 32 rx_clk/gpio7_rli 38 spi_sclk/mdc 44 this pin is the clock for the spi interface. rxd2 33 this pin determines the clocking range of the spi clock. refer to the strapping options section.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 67 revision 1.0 note that the clock tree power - down control register (0x038 ? 0x039): ctpdc is used to power down the clocks in various areas of the device. there are no other internal register bits which control the clock generation or usage in the device. gpio and ieee 1588 - related clocking the gpio and ieee 1588 - relat ed circuits both utilize the 25mhz clock and the derived 125 mhz clock. the t olerance and accuracy of the 25 mhz clock source will affect the ieee 1588 jitter and offset in a system utilizing multiple s lave devices. therefore, the 25 mhz source should be chosen with care towards the performance of the application in mind. using an oscillator will generally provide better results.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 68 revision 1.0 po wer the ksz8463 device requires a single 3.3v supply to operate. an internal low - voltage ldo provides the necessary low voltage (nominal ~ 1. 3 v ) to power the analog and digital logic cores. the various i/o?s can be operated at 1.8v, 2.5v, and 3.3v. table 10 illustrates the various voltage options and requirements of the device. table 10 . voltage options and requirements power signal name device pin requirement vdd_a3.3 9 3.3v input power to the analog blocks in the device. vdd_io 21, 30, 56 choice of 1.8v or 2.5v or 3.3v for the i/o circuits. these input power pins power the i/o circuitry of the device. this voltage is also used as the input to the internal low - voltage regulator. vdd_al 6 filtered low - voltage analog input voltage. this is where the filtered low voltage is fed back into the device to power the a nalog block. vdd_col 16 filtered low - voltage ad input voltage. this pin feeds the low voltage to the digital ci rcuits within the a nalog block. vdd_l 40, 51 output of internal low - voltage ldo regulator. this voltage is available on these pins to allow connection to external capacitors and ferrite be ads for filtering and power integrity. these pins must be exter nally connected to pin s 6 and 16. if the internal ldo regulator is turned off, these pins become power inputs. agnd 3, 8, 12 analog ground. dgnd 20, 29, 39, 50, 57 digital ground. the preferred method of configuring the related low - voltage power pins when using an external low - voltage regulator is illustrated in figure 15 . the nu mber of capacitors, values of capacitors, and exact placement of components will depend up on the specific design. figure 15 . recommended low - voltage power connection using an external low - voltage regulator
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 69 revision 1.0 internal low voltage ldo regulator the ksz8463 reduces board cost and simplifies board layout by integrating a low noise internal low - voltage ldo regulator to supply the nominal ~ 1. 3v core power voltage for a single 3.3v power supply solution. if it is desired to take advantag e of an external low - voltage supply that is available, the internal low - voltage regulator can be disabled to s ave power. the ldo_off bit, bit [7] in register 0x748 is used to enable or disable the internal low - voltage regulator. the default state of the ldo _off bit is ?0? which enables the internal low - voltage regulator. turning off the internal low - voltage regulator will require software to write a ?1? to that control bit. during the time from power up to setting this bit, both t he external voltage supply a nd the internal regulator will be supplying power. note that it is not necessary to turn off the internal low - voltage regulator. no damage will occur if it is left on. however, leaving it on will result in less than optimized power consumption. the intern al regulator takes its power from vdd_io, and functions best when vdd_io is 3.3v or 2.5v. if vdd_io is 1.8v, the output voltage will be somewhat decreased. for optimal performance, an external power supply, in place of the internal regulator, is recommende d when vdd_io is 1.8v. the preferre d method of configuring the low - voltage related power pins for using the internal low - voltage regulator is illustrated in figure 16 . the output of the internal regulator is available on pin s 40 and 51 and is filtered using external capaci tors and a ferrite bead to supply power to pin s 6 and 16 . the number of capacitors, values of capacitors, and exact placement of components will depend up on the specific design. figure 16 . recommended low - voltage power connection using the internal low - voltage regulator
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 70 revision 1.0 power manage ment the ksz8463 sup port s enhanced p ower management features in low - power state with energy detection to ensure low - power dissipation during device idle periods. there are three operation modes under the power management function which is controlled by two bits in the power management control and wake - up event status register (pmctrl, 0x032 ? 0x033) as shown below: pmctrl[1:0] = ?00? normal operation mode pmctrl[1:0] = ?01? energy detect mode pmctr l[1:0] = ?10? global soft power - down mode the table 11 indicates all internal function blocks sta tus under three different power - management operation modes. table 11. power management and internal blocks ksz8463 function blocks power management operation modes normal mode energy detect mode soft power - down mode internal pll clock enabled disabled disabled tx/rx phys enabled energy d etect at rx disabled macs enabled disabled disabled host interface enabled disabled disabled normal operation mode normal operation mode is the power management mode entered into after device power - up or after hardware reset pin 63. it is established via bits[ 1:0] = ?00? in the pmctrl register. when the ksz8463 is in normal operation mode, all pll clocks are running, phys and macs are on, and the cpu is ready to read or write the ksz8463 through these serial interfaces (spi and miim). during the normal operati on mode, the host cpu can change the power management mode bits[1:0] in the pmctrl register to transition to another desired power management mode energy - detect mode energy - detect mode provides a mechanism to save more power than in normal operation mode when the ksz8463 is not connected to an active link partner. for example, if the cable is not present or it is connected to a powered down partner, the ksz8463 can automatically enter the low power state in energy detect mode. once activity resumes after a ttaching a cable or by a link partner attempting to establish a link, the ksz8463 will automatically power - up into the normal power state in energy detect normal power state. the energy - detect mode function is not valid in fiber mode using the ksz8463fml a nd ksz8463 f rl devices. energy - detect mode consists of two states, normal - power state an d low - power state. while in low - power state, the ksz8463 reduces power consumption by disabling all circuitry except the energy detect circuitry of the receiver. energy detect mode is enabled by setting bits[1:0] = ?01? in the pmctrl register. when the ksz8463 is in this mode, it will monitor the cable energy. if there is no energy on the cable for a time longer than a pre - configured value determined by bits[7:0] (go - slee p time) in the gst register, the device will go into the low - power state. when the ksz8463 is in low - power state, it will keep monitoring the cable energy. once energy is detected from the cable and is present for a time longer than 100ns, the ksz8463 will enter the normal - power state.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 71 revision 1.0 global soft power - down mode soft power - down mode is entered by setting bits[1:0] = ?10? in pmctrl register. when the device is in this mode, all pll clocks are disabled, the phys and the macs are off, all internal registers value will change to default value, and the cpu serial interface is only used to wake - up this device from the current soft power - down mode to normal operation mode by setting bits[1:0] = ?00? in the pmctrl register. all strap - in pins are sampled to latch a ny new values when soft power - down is disabled. energy - efficient ethernet (eee) energy - e fficient ethernet (eee) is implemented in the ksz8463ml device as described in the ieee 802.3az specification for mii operations on port 1 and port 2. th e eee function is not available for fiber m ode port s using the ksz8463fml and ksz8463frl devices. eee is not performed at port 3 since that is a mac to mac interface and not a mac to phy interface. the internal connection between the mac and phy blocks are performed in m ii mode. the details of the implementation are provided in the information that follows. the standards are defined around a mac that sup port s special signaling associated with eee. eee saves power by keeping the voltage on the ethernet cable at approximate ly 0v for as often as possible during periods of no traffic activity. this is called low - power idle (lpi) state . however, the link will respond automatically when traffic resumes and do so in such a way as to not cause blocking or dr opping of any packets (the wake - up time for 100bt is specified to be less than 30s.) . the transmit and receive directions are independently controlled. note the eee is not specified or implemented for 10bt. in 10bt, the transmitter is already off during idle periods. the eee feature is enabled by default. eee is auto - negotiated independently for each direction on a link, and is enabled only if both nodes on a link support it. to disable eee, clear the next page enable bit(s) for the desired p ort (s) in the pcseeec regis ter (0x0f3) and restart auto - negotiation. based on the eee specification, the energy savings from eee occurs at the phy level. however, the ksz8463 device reduces the power consumption not only in the phy block but also in the mac and switch blocks by shut ting down any unused clocks as much as possible when the device is at lpi state. a comprehensive lpi request on/off policy is also built - in at the switch level to determine when to issue lpi requests and when to stop the lpi request. some software control options are provided in the device to terminate the lpi request in the early phase when certain events occur to reduce the latency impact during lpi recovery. a configurable lpi recovery time register is provided at each port t o specify the recovery time ( 25 s at default) required for the ksz8463 and its link partner before they are ready to transmit and receive a packet after going back to the normal state. for details, please refer to the ksz8463 eee registers (0x0e0 ? 0x0f7) description. the time during which lpi mode is active is during what is called quiet time. this is shown in figure 17 . figure 17 . traffic activity and eee
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 72 revision 1.0 transmit direction control for mii mode for port s 1 and 2, l ow - power i dle (lpi) state for the transmit direction will be entered when the internal eee mac signals to its phy to do so . the phy will stay in the t ransmit lpi stat e as long as indicated by the mac . t he tx_clk is not stopped. even though the phy is in lpi state, it will periodically leave the lpi state to transmit a refresh signal using specific transmit code bits. this allows the link partner to keep track of the l ong- term variation of channel characteristics and clock drift between the two partners. approximately every 20 ms ? 22m s, the phy will transmit a bit pattern to its link partner of durat ion 200 s ? 220 s. the r efresh times are listed in figure 17 . receive direction control for mii mode if enabled for lpi mode, upon receiving a p code bit pa ttern (r efresh), the phy will enter the lpi state and signal to the internal mac . if the phy receives some non - p code bit pattern, it will signal to the mac to return to ?normal frame? mode . the phy can turn off the rx_clk after nine or more clocks have occurred in the lpi state. in the eee - compliant environment, the internal phys wil l be monito ring and expecting the p code (r efresh) bit pattern from its link partner that is generated approximately every 20 ms ? 22m s, with a duration of about 200 s ? 220 s . this allows the link partner to keep track of the long term variation of channel characteristics and clock drift between the two partners. registers associated with eee the following registers are used to configure or manage the eee feature: ? reg. dch, ddh ? p1anpt ? port 1 auto - negotiation next page transmit register ? reg. deh, dfh ? p 1alprnp ? port 1 auto - negotiation link partner received next page register ? reg. e0h, e1h ? p1eeea ? port 1 eee and link partner advertisement register ? reg. e2h, e3h ? p1eeewec ? port 1 eee wake error count register ? reg. e4h, e5h ? p1eeecs ? port 1 eee con trol/status and auto - negotiation expansion register ? reg. e6h ? p1lpirtc ? port 1 lpi recovery time counter register ? reg. e7h ? bl2lpic1 ? buffer load to lpi control 1 register ? reg. e8h, e9h ? p2anpt ? port 2 auto - negotiation next page transmit register ? reg. eah, ebh ? p2alprnp ? port 2 auto - negotiation link partner received next page register ? reg. ech, edh ? p2eeea ? port 2 eee and link partner advertisement register ? reg. eeh, efh ? p2eeewec ? port 2 eee wake error count register ? reg. f0h, f1h ? p2eeecs ? port 2 eee control/status and auto - negotiation expansion register ? reg. f2h ? p2lpirtc ? port 2 lpi recovery time counter register ? reg. f3h ? pcseeec ? pcs eee control register ? reg. f4h, f5h ? etlwtc ? empty txq to lpi wait time control register ? reg. f6h, f7h ? bl2lpic2 ? buffer load to lpi control 2 register interrupt generation on power management - related events the vario us status bits associated with link change and energy d etect situations are found in the pmctrl register (0x032 ? 0x033) bit s[3:2]. the enabling of these signals to generate an interrupt are in ier (0x190 ? 0x191) bits[3:2]. the actual interrupt status for these bits are located in isr (0x192 ? 0x193) bits[3:2].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 73 revision 1.0 interfaces the ksz8463 device incorporates a number of interfaces to enable it to be designed into a standard network environment as well as a vendor unique environment. the available interfaces are summarized in table 12 . the details of each usage in table 12 are provid ed in the sections which follow. table 12 . available interfaces interface type usage registers accessed spi configuration and register access [as slave serial bus] ? external cpu or controller can r/w all internal registers thru this interface. all miim configuration and register access mdc/mdio - capable cpu or controllers can r/w phy registers. phy only mii data flow interface to the port 3 mac using the standard mii timing. n/a rmii data flow interface to the port 3 mac using the faster reduced rmii timing. n/a phy data flow interface to the two internal phy devices. n/a configuration interface the ksz8463 sup ports a serial configuration interface , which may be either spi or miim . the strapping option on pin 35 (rxd0) and pin 34 (rxd1) is used to select one of these two interfaces. this setting may be re ad in the serial bus selection bits in the configuration status and serial bus mode r egister (0x0d8 ? 0x0d9): cfgr. spi slave serial bus configuration the ksz8463 sup port s a spi interface in slave mode (see strapping options ). in this managed mode, an external spi master device (micro - controller or cpu) supplies the serial clock (s pi_sclk), chip select (spi_csn), and serial input data (spi_di). serial output data (spi_do) is driven out by the ksz8463. spi operations start with the falling edge of spi_csn and end with the rising edge of spi_csn. spi_sclk is expected to stay low when spi operation is idle. a spi mast er device (external controller/cpu) has complete programming access to all ksz8463 registers. table 13 shows the spi interface connection for the ksz8 463. table 13 . spi connection ksz8463 pin number ksz8463 (spi slave) signal name external processor (spi master) signal description 42 spi_csn (input) spi chip select (master output) 44 spi_sclk (input) spi clock (master output) 45 spi_di (input) spi data out (master output) 41 spi_do (output) spi data in (master input)
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 74 revision 1.0 input data on spi_di (mosi) is sampled by the ksz8463 on the rising edge of spi_sclk. timing of the outpu t data on spi_do (miso) is user - selectable by a st rapping opti on on pin 33. the options are high - speed spi and low - speed spi: ? high - speed spi mode: spi_do is clocked out at the rising edge of spi_sclk mode. the master will typically sample miso data at the falling edge of spi_sclk, but depending on the m iso hold time requirements of the master, rising edge sampling may be possible. ? low - speed spi mode: spi_do is clocked out at the falling edge o f spi_sclk, ? cycle later than h igh - speed spi mode. the master will typically sample miso data at the rising edge of spi_sclk. the ksz8463 sup port s two standard spi commands: ? internal i/o registers read (opcode = ?0?) ? internal i/o registers write (opcode = ?1?) as shown in table 14 and figure 18 , there are two phases in each spi operation. the first is the command p hase, followed by the data phase. the command phase is two bytes long for register access. the data phase is in the range of one to four bytes long depending on the specified byte enable bits b[3:0] in command phase. table 14 . regis ter access using the spi interface spi operation command phase (si pin) data phase (so or si pins) byte 0 [7:0] byte 1 [7:0] op register address byte enable ta b its register read 0 a10 a9 a8 a7 a6 a5 a4 a3 a2 b3 b2 b1 b0 x x 1 to 4 bytes (read data on so pin) register write 1 a10 a9 a8 a7 a6 a5 a4 a3 a2 b3 b2 b1 b0 x x 1 to 4 bytes (write data on si pin) notes: 1. in command phase, address a[10:2] access register location in double - word and byte enable b[3:0] to indicate which byte to access during read or write. in data phase, the byte 0 is first in/out and byte 3 is last in/out during read or write. 2. b[3:0] - > 1: enable byte; 0: disable byte. cpu can enable any one of the four bytes, lower or higher two bytes, or all four bytes dur ing the com mand phase. 3. ta bits are turn around bits and ?don?t care bits. spi register access operation timing as shown in figure 10 and figure 11 , illustrating the spi internal i/o registers read and write operation t iming, the firs t two command byte 0/1 contain o pcode (0: read command, 1: write command), a[10:2] address bits to access register location in double words and b[3:0] byte enable bits to indicate which data byte is available in data phase (1: byte enable, 0 : byte disable). the following is data phase either 1, 2 or 4 bytes depending on b[3:0] setting. figure 19 and f igure 20 show the details of the spi bus protocol for read and write operations. initially the master sends a two - byte command. this command begins with a 1 - bit opcode (0: read command, 1 : write command), it is followed by address bits a[10] to a[2], then four byte enable bits b[3:0], then finally two zero bits. the byte enable bits are set to indicate which bytes will be transferred in the data phase of the spi operation. for a two - byt e operation, which is the most common, b[3:0] = 0011. for a single byte operation, b[3:0] = 0001, and for a four - byte operation, b[3:0] = 1111. the sequence for data transfer is least significant byte first. then within each byte, the most significant bi t goes first.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 75 revision 1.0 figure 18 . spi register read operation ? low - speed mode figure 19 . spi register read operation ? high - speed mode figure 20 . spi register write operation timing
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 76 revision 1.0 mii management (miim) interface the ksz8463 supports the ieee 802.3 mii management i nt erface, also known as the management data input/output (mdio) i nterface. this interface allows upper - layer devices to monitor and c ontrol the states of the ksz8463 phy block. an external device with mdc/mdio capability can read the phy status or configure the phy settings. details on the miim interface can be found in clause 22.2.4.5 of the ieee 802.3u specification. timing informatio n can be found in 802.3 section 22.3.4. the miim interface consists of the following: ? a physical connection that uses a data signal (mdio) and a clock signal (mdc) for communication between an external controller and the ksz8463 device. ? a specific protocol that operates across the two signal physical connection that allows an external controller to communicate with the internal phy devices. ? access to a set of eight 16 - bit registers, consisting of six standard miim registers (0x0 ? 0x5) and two custo m miim registers (0x1d and 0x1f). each set of registers is duplicated for each internal phy device. the miim interface can operate up t o a maximum clock speed of 5 mhz and access is limited to only the registers in the phy block. table 15 summarizes the mii m a nagement i nterface frame format. table 15 . mii management interface frame format operation mode preamble (32 - bit) start of frame (2 - bit) operation code (2 - bit) phy address (5 - bit) register address (5 - bit) turn around (2 - bit) register data (16 - bit) idle read all 1s 01 10 a[4:0] reg[4:0] z0 d[15:0] z write all 1s 01 01 a[4:0] reg[4:0] 10 d[15:0] z media independent interface (mii) the media independent i nterface (mii) is specified in clause 22 of the ieee 802.3u standard. it provides a common interface between phy layer and mac layer devices. the mii provided by the ksz8463ml and ksz8463fml is connected t o the device?s third mac on port 3. this interface is operated in phy mode or in mac mode. this is determined by the strapping option on the rx_dv pin ( pin 31) at the time of de - assertion of rstn. the interface contains two distinct groups of signals, one for transmission and the other for reception. table 16 describes the signals used by the mii interface to connect to an external mac or an external ph y.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 77 revision 1.0 table 16 . mii interface signal and pin associations phy mode signals connection mii interface signals description mac mode signals connection ksz8463m l /fml in phy - mode signals external mac controller signals external phy device signals ksz8463m l /fml in mac - mode signals tx_en ( pin 22, input) tx_en transmit enable tx_en rx_dv (pin 31, output) mii_bp ( pin 28, input) tx_er transmit error tx_er na (not used) txd 3 ( pin 23, input) txd3 transmit data bit 3 txd3 rxd 3 ( pin 32, output) txd2 ( pin 24, input) txd2 transmit data bit 2 txd2 rxd2 ( pin 33, output) txd1 ( pin 25, input) txd1 transmit data bit 1 txd1 rxd1 ( pin 34, output) txd0 ( pin 26, input) txd0 transmit data bit 0 txd0 rxd0 ( pin 35, output) tx_clk ( pin 27, output) tx_clk transmit clock tx_clk rx_clk ( pin 38, input) col ( pin 37, output) col collision detection col col ( pin 37, input) crs ( pin 36, output) crs carrier sense crs crs ( pin 36, input) rx_dv ( pin 31, output) rx_dv receive data valid rx_dv tx_en ( pin 22, input) na (not used) rx_er receive error rx_er tx_er ( pin 28, input ) rxd 3 ( pin 32, output) rxd3 receive data bit 3 rxd3 txd 3 ( pin 23, input) rxd2 ( pin 33, output) rxd2 receive data bit 2 rxd2 txd2 ( pin 24, input) rxd1 ( pin 34, output) rxd1 receive data bit 1 rxd1 txd1 ( pin 25, input) rxd0 ( pin 35, output) rxd0 receive data bit 0 rxd0 txd0 ( pin 26, input) rx_clk ( pin 38, output) rx_clk receive clock rx_clk tx_clk ( pin 27, input) the mii interface operates in either phy mode or mac mode. the data interface is 4 - bits wide and runs at o ne quarter the network bit rate; either 2.5mhz in 10bt or 25 mhz in 100bt (not encoded). additional signals on the transmit side indicate when data is valid or when an error occurs during transmission. similarly, the receive side has signals that convey when the data is valid and without physical layer errors. for half duplex operation, the col signal indicates if a collision has occurred during transmis sion. the ksz8463ml /fml does not provide the rx_er signal in phy mode operation or the tx_er signal in mac mode operation. normally, rx_er indicates a receive error coming from the physical layer device and tx_er indicates a transmit error from the mac dev ice. since the switch filters error frames, these mii error signals are not used by the ksz8463ml /fml . so, for phy mode operation, if the device interfacing with the ksz8463ml /fml has an rx_er input pin, it needs to be tied low. and, for mac mode operation , if the device interfacing with the ksz8463ml /fml has a tx_er input pin, it also needs to be tied low. the ksz8463m l/fm l provides a bypass feature in the mii phy mode. the tx_er/mii_bp pin (pin 28) is used to enable the mii bypass mode when this pin is ti ed to high. the mii ( port 3) is shut down if tx_er/mii_bp is set to high in the mii phy mode . in this case, no new ingress frames from either port 1 or port 2 will be sent out through port 3 and only switching between port 1 and port 2 for all ingress packets will occur, and the frames for port 3 already in packet memory will be flushed out.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 78 revision 1.0 reduced media independent interface (rmii) the reduced media independent i nterface (rmii) specifies a low pin count mii . it is available only o n port 3 of the ksz84 63 rl and ksz8463frl device s for communication with the mac attached to that port . as with mii, rmii provides a common interface between physical layer and mac layer devices, and has the following key characteristics: ? sup port s network d ata rates of either 10mbps or 100mbps. ? uses a single 50 mhz clock reference (provided internally or externally) for both transmit and receive data. ? uses independent 2 - bit wide transmit and receive data paths. ? contains two distinct groups of signals: one fo r transmission and the other for reception. the user should select one the two rmii clocking methods shown in table 17 . while en_refclk_o (pin 23) is high, the ksz8463rl /frl will output a 50 mhz clock on refclk_o (pin 32) , which is derived from the 25 mhz crystal or oscillator attached to the x1 and x2 inputs. in this mode, refclk_o must be externally connected to refclk_i (pin 27). while en_refclk_o (pin 23) is low, the ksz8463rl /frl will require an external 50 mhz signal to be input to the refclk_i input from an external source. in this mode, the x1 and x2 pins are not used . table 17 . rmii clock setting s en_refclk_o (pin 23) 25 / 50 mhz select (pin 41) at power -u p/reset time output on refclk_0 (pin 32) clock source note 0 (disable) 0 (50mhz) no exter nal 50 mhz input to refclk_i - x1/x2 are not used. leave them unconnected. 1 (enable) 1 (25mhz) 50 mhz refclk_o output must be externally connected to refclk_i - 50 mhz output on refclk_o pin - x1/x2 is connected to a 25 mhz crystal or oscillator do not use the remainder of logical inputs na na the rmii interface in ksz8463rl /frl is connected to the device?s third mac. it complies with the rmii s pecification. table 18 describes the signals used by the rmii interface. refer to the rmii s pecification for full details on the signal descriptions. table 18 . rmii signal descriptions rmii signal name direction (with respect to the phy) direction (with respect to the mac) rmii signal description ksz8463rl /frl rmii signal (direction) refclk input input or output synchronous 50 mhz clock reference for receive, transmit, and control interface refclk_ i (input) crs_dv output input carrier sense/ receive data valid rx_dv (output) rxd[1:0] output input receive data bit [1:0] rxd[1:0] (output) tx_en input output transmit enable tx_en (input) txd[1:0] input output transmit data bit [1:0] txd[1:0] (input) rx_er output input or not required receive error (not used) ? ? ? ? tx_er* (input) * connects to rx_er signal of rmii phy device
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 79 revision 1.0 the ksz8463rl /frl filters error frames, and thus does not implement the rx_er output signal. to detect error frames from rmii phy devices, the tx_er input signal of the ksz8463rl /frl is connected to the rx_er output signal of the rmii phy device. collision detection is impl emented in accordance with the rmii specification. in rmii mode, tie the mii signals (txd[3:2], rxd[3:2] and tx_er) to ground via a resister if they are not used. the ksz8463rl /frl can interface to either an rmii phy or an rmii mac device. the rmii mac device allows two ksz8463rl /frl devices to be connected back - to - back. table 19 shows the ksz8463rl /frl rmii pin connections with an external rmii phy and an external rmii mac, such as another ksz8463rl /frl device. table 19 . rmii phy -to - mac and mac -to - mac signal connections ksz8463rl /frl phy - mac connections signal descriptions ksz8463rl /frl mac - mac connections external phy signals ksz8463rl /frl mac signals ksz8463rl /frl mac signals external mac signals refclk refclk_ i reference clock refclk_ i ref_clk tx_en rx_dv carrier sense/ receive data valid rx_dv crs_dv t xd1 rxd 1 receive data bit [ 1 ] rxd 1 rxd1 t xd0 rxd 0 receive data bit [ 0 ] rxd 0 rxd0 crs_dv tx_en transmit enable tx_en tx_en r xd1 txd 1 transmit data bit [ 1 ] txd 1 txd1 r xd0 txd 0 transmit data bit [ 0 ] txd 0 txd0 rx_er tx_er receive error (not used) (not used)
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 80 revision 1.0 device registers the ksz8463 device has a rich set of registers available to manage the functionality of the device. access to these registers is via the miim or spi interfaces. all of the registers are not accessible via each interface. figure 21 provides a global picture of accessibility via the various interfaces and addressing ranges from the perspective of each interface. figure 21 . interface and register mapping the registers within the linear 0x000 ? 0x7ff address space are all accessible via the spi interface by a microprocessor or cpu attached to that buss. the mapping of the various functions within that linear address space is summarized in table 20 .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 81 revision 1.0 table 20 . mapping of functional areas within the address space register locations device area description 0x000 ? 0x0ff switch control and configuration registers which control the overall functionality of the switch, mac, and phys 0x026 ? 0x031 indirect access registers registers used to indirectly address and access four di stinct areas within the device. - management information base (mib) counters - static mac address table - dynamic mac address table - vlan table 0x044 ? 0x06b phy1 and phy2 r egisters the same phy registers as specified in ieee 802.3 specification 0x100 ? 0x1ff interrupts and global reset the registers and bits associated with interr upts and global reset 0x200 ? 0x3ff ieee 1588 ptp trigger control and output r egisters r egisters used to c onfigure and use the ieee 1588 t rigger functions 0x400 ? 0x5ff ieee 1588 ptp times tamp input unit s r egisters used for controlling and monitoring the 1588 timestamp unit s 0x600 ? 0x7ff ieee 1588 ptp clock and global control r egisters that control and monitor the ptp clock, port ingress/egress, and messaging
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 82 revision 1.0 register map of cpu accessible i/o register s in managed switch mode, the registers within the ksz8463 can be accessed using the spi slave serial bus interface. an external microprocessor communicates with the device through these registers. these registers are used for configuring the device, contr olling processes, and reading various statuses. i/o registers the following i/o register space mapping tables apply to 8 - bit or 16 - bit locations. depending upon the serial bus mode selected, each i/o access can be performed using the following operations: ? using 8 - bit accesses for all serial bus modes, there are 2048 - byte address locations. ? in byte, word, or double word access for spi serial bus mode only. internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) i/o register offset location register name default value description 16- bit 8 - bit 0x000 ? 0x001 0x000 0x001 cider 0x8443 (ml , fml ) 0x845 3 (rl , frl ) chip id and enable register [15:0] 0x002 ? 0x003 0x002 0x003 sgcr1 0x345 0 switch global control register 1 [15:0] 0x004 ? 0x005 0x004 0x005 sgcr2 0x00f0 switch global control register 2 [15:0] 0x006 ? 0x007 0x006 0x007 sgcr3 0x632 0 switch global control register 3 [15:0] 0x008 ? 0x00 b 0x008 0x00 b reserved (4 - bytes) don?t c are none 0x00c ? 0x00d 0x00c 0x00d sgcr6 0xfa50 switch global control register 6 [15:0] 0x00e ? 0x00f 0x00e 0x00f sgcr7 0x082 7 switch global control register 7 [15:0] 0x010 ? 0x011 0x010 0x011 macar1 0x0010 mac address register 1 [15:0] 0x012 ? 0x013 0x012 0x013 macar2 0xa1ff mac address register 2 [15:0] 0x014 ? 0x015 0x014 0x015 macar3 0xffff mac address register 3 [15:0] 0x016 ? 0x017 0x016 0x017 tosr1 0x0000 tos priority control register 1 [15:0] 0x018 ? 0x019 0x018 0x019 tosr2 0x0000 tos priority control register 2 [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 83 revision 1.0 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x01a ? 0x01b 0x01a 0x01b tosr3 0x0000 tos priority control register 3 [15:0] 0x01c ? 0x01d 0x01c 0x01d tosr4 0x0000 tos priority control register 4 [15:0] 0x01e ? 0x01f 0x01e 0x01f tosr5 0x0000 tos priority control register 5 [15:0] 0x020 ? 0x021 0x020 0x021 tosr6 0x0000 tos priority control register 6 [15:0] 0x022 ? 0x023 0x022 0x023 tosr7 0x0000 tos priority control register 7 [15:0] 0x024 ? 0x025 0x024 0x025 tosr8 0x0000 tos priority control register 8 [15:0] 0x026 ? 0x027 0x026 0x027 iadr1 0x0000 indirect access data register 1 [15:0] 0x028 ? 0x029 0x028 0x029 iadr2 0x0000 indirect access data register 2 [15:0] 0x02a ? 0x02b 0x02a 0x02b iadr3 0x0000 indirect access data register 3 [15:0] 0x02c ? 0x02d 0x02c 0x02d iadr4 0x0000 indirect access data register 4 [15:0] 0x02e ? 0x02f 0x02e 0x02f iadr5 0x0000 indirect access data register 5 [15:0] 0x030 ? 0x031 0x030 0x031 iacr 0x0000 indirect access control register [15:0] 0x032 ? 0x033 0x032 0x033 pmctrl 0x0000 power management control and wake - up event status register [15:0] 0x034 ? 0x035 0x034 0x035 reserved (2 - bytes) 0x0000 none 0x036 ? 0x037 0x036 0x037 gst 0x008e go sleep time register [15:0] 0x038 ? 0x039 0x038 0x039 ctpdc 0x0000 clock tree power down control register [15:0] 0x03a ? 0x04b 0x03a 0x04b reserved (1 8 - bytes) don?t c are none 0x04c ? 0x04d 0x04c 0x04d p1mbcr 0x31 20 phy 1 and mii basic control register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 84 revision 1.0 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x04e ? 0x04f 0x04e 0x04f p1mbsr 0x7808 phy 1 and mii basic status register [15:0] 0x050 ? 0x051 0x050 0x051 phy1ilr 0x1430 phy 1 phyid low register [15:0] 0x052 ? 0x053 0x052 0x053 phy1ihr 0x0022 phy 1 phyid high register [15:0] 0x054 ? 0x055 0x054 0x055 p1anar 0x05e1 phy 1 auto - negotiation advertisement register [15:0] 0x056 ? 0x057 0x056 0x057 p1anlpr 0x0001 phy 1 auto - negotiation link partner ability register [15:0] 0x058 ? 0x059 0x058 0x059 p2mbcr 0x31 20 phy 2 and mii basic control register [15:0] 0x05a ? 0x05b 0x05a 0x05b p2mbsr 0x7808 phy 2 and mii basic status register [15:0] 0x05c ? 0x05d 0x05c 0x05d phy2ilr 0x1430 phy 2 phyid low register [15:0] 0x05e ? 0x05f 0x05e 0x05f phy2ihr 0x0022 phy 2 phyid high register [15:0] 0x060 ? 0x061 0x060 0x061 p2anar 0x05e1 phy 2 auto - negotiation advertisement register [15:0] 0x062 ? 0x063 0x062 0x063 p2anlpr 0x0001 phy 2 auto - negotiation link partner ability register [15:0] 0x064 ? 0x065 0x064 0x065 reserved (2 - bytes) don?t care none 0x066 ? 0x067 0x066 0x067 p1phyctrl 0x0004 phy 1 special control and status register [15:0] 0x068 ? 0x069 0x068 0x069 reserved (2 - bytes) don?t care none 0x06a ? 0x06b 0x06a 0x06b p2phyctrl 0x0004 phy2 special control and status register [15:0] 0x06c ? 0x06d 0x06c 0x06d p1cr1 0x0000 port 1 control register 1 [15:0] 0x06e ? 0x06f 0x06e 0x06f p1cr2 0x0607 port 1 control register 2 [15:0] 0x070 - 0x071 0x070 0x071 p1vidcr 0x0001 port 1 vid control register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 85 revision 1.0 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x072 ? 0x073 0x072 0x073 p1cr3 0x0000 port 1 control register 3 [15:0] 0x074 ? 0x075 0x074 0x075 p1ircr0 0x0000 port 1 ingress rate control register 0 [15:0] 0x076 ? 0x077 0x076 0x077 p1ircr1 0x0000 port 1 ingress rate control register 1 [15:0] 0x078 ? 0x079 0x078 0x079 p1ercr0 0x0000 port 1 egress rate control register 0 [15:0] 0x07a ? 0x07b 0x07a 0x07b p1ercr1 0x0000 port 1 egress rate control register 1 [15:0] 0x07c ? 0x07d 0x07c 0x07d p1scslmd 0x04 00 port 1 phy special control/status, linkmd register [15:0] 0x07e ? 0x07f 0x07e 0x07f p1cr4 0x00f f port 1 control register 4 [15:0] 0x080 ? 0x081 0x080 0x081 p1sr 0x8 000 port 1 status register [15:0] 0x082 ? 0x083 0x082 0x083 reserved (2 - byte s) don?t c are none 0x084 ? 0x085 0x084 0x085 p2cr1 0x0000 port 2 control register 1 [15:0] 0x086 ? 0x087 0x086 0x087 p2cr2 0x0607 port 2 control register 2 [15:0] 0x088 ? 0x089 0x088 0x089 p2vidcr 0x0001 port 2 vid control register [15:0] 0x08a ? 0x08b 0x08a 0x08b p2cr3 0x0000 port 2 control register 3 [15:0] 0x08c ? 0x08d 0x08c 0x08d p2ircr0 0x0000 port 2 ingress rate control register 0 [15:0] 0x08e ? 0x08f 0x08e 0x08f p2ircr1 0x0000 port 2 ingress rate control register 1 [15:0] 0x090 ? 0x091 0x090 0x091 p2ercr0 0x0000 port 2 egress rate control register 0 [15:0] 0x092 ? 0x093 0x092 0x093 p2ercr1 0x0000 port 2 egress rate control register 1 [15:0] 0x094 ? 0x095 0x094 0x095 p2scslmd 0x04 00 port 2 phy special control/status, linkmd register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 86 revision 1.0 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x096 - 0x097 0x096 0x097 p2cr4 0x00f f port 2 control register 4 [15:0] 0x098 - 0x099 0x098 0x099 p2sr 0x8 000 port 2 status register [15:0] 0x09a - 0x09b 0x09a 0x09b reserved (2 - bytes) don?t c are none 0x09c - 0x09d 0x09c 0x09d p3cr1 0x0000 port 3 control register 1 [15:0] 0x09e - 0x09f 0x09e 0x09f p3cr2 0x0607 port 3 control register 2 [15:0] 0x0a0 - 0x0a1 0x0a0 0x0a1 p3vidcr 0x0001 port 3 vid control register [15:0] 0x0a2 - 0x0a3 0x0a2 0x0a3 p3cr3 0x0000 port 3 control register 3 [15:0] 0x0a4 - 0x0a5 0x0a4 0x0a5 p3ircr0 0x0000 port 3 ingress rate control register 0 [15:0] 0x0a6 - 0x0a7 0x0a6 0x0a7 p3ircr1 0x0000 port 3 ingress rate control register 1 [15:0] 0x0a8 - 0x0a9 0x0a8 0x0a9 p3ercr0 0x0000 port 3 egress rate control register 0 [15:0] 0x0aa - 0x0ab 0x0aa 0x0ab p3ercr1 0x0000 port 3 egress rate control register 1 [15:0] 0x0ac - 0x0ad 0x0ac 0x0ad sgcr8 0x8 000 switch global control register 8 [15:0] 0x0ae - 0x0af 0x0ae 0x0af sgcr9 0x0000 switch global control register 9 [15:0] 0x0b0 - 0x0b1 0x0b0 0x0b1 safmaca1l 0x0000 source address filtering mac address 1 for port 1 register low [15:0] 0x0b2 - 0x0b3 0x0b2 0x0b3 safmaca1m 0x0000 source address filtering mac address 1 for port 1 register middle [15:0] 0x0b4 - 0x0b5 0x0b4 0x0b5 safmaca1h 0x0000 source address filtering mac address 1 for port 1 register high [15:0] 0x0b6 - 0x0b7 0x0b6 0x0b7 safmaca2l 0x0000 source address filtering mac address 2 for port 2 register low [15:0] 0x0b8 - 0x0b9 0x0b8 0x0b9 safmaca2m 0x0000 source address filtering mac address 2 for port 2 register middle [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 87 revision 1.0 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x0ba - 0x0bb 0x0ba 0x0bb safmaca2h 0x0000 source address filtering mac address 2 for port 2 register high [15:0] 0x0bc - 0x0c7 0x0bc 0x0c7 reserved (12 - bytes) don?t c are none 0x0c8 - 0x0c9 0x0c8 0x0c9 p1txqrcr1 0x8488 port 1 txq rate control register 1 [15:0] 0x0ca - 0x0cb 0x0ca 0x0cb p1txqrcr2 0x8182 port 1 txq rate control register 2 [15:0] 0x0cc - 0x0cd 0x0cc 0x0cd p2txqrcr1 0x8488 port 2 txq rate control register 1 [15:0] 0x0ce - 0x0cf 0x0ce 0x0cf p2txqrcr2 0x8182 port 2 txq rate control register 2 [15:0] 0x0d0 - 0x0d1 0x0d0 0x0d1 p3txqrcr1 0x8488 port 3 txq rate control register 1 [15:0] 0x0d2 - 0x0d3 0x0d2 0x0d3 p3txqrcr2 0x8182 port 3 txq rate control register 2 [15:0] 0x0d4 - 0x0d5 0x0d4 0x0d5 reserved (2 - bytes) don?t c are none 0x0d6 - 0x0d7 0x0d6 0x0d7 iomxsel 0x0fff input and output multiplex selection register [15:0] 0x0d8 - 0x0d9 0x0d8 0x0d9 cfgr 0x00fe configuration status and serial bus mode register [15:0] 0x0da - 0x0db 0x0da 0x0db reserved (2 - bytes) don?t c are none 0x0dc - 0x0dd 0x0dc 0x0dd p1anpt 0x2 001 port 1 auto - negotiation next page transmit register [15:0] 0x0de - 0x0df 0x0de 0x0df p1alprnp 0x0000 port 1 auto - negotiation link partner received next page register [15:0] 0x0e0 - 0x0e1 0x0e0 0x0e1 p1eeea 0x0002 port 1 eee and link partner advertisement register [15:0] 0x0e2 - 0x0e3 0x0e2 0x0e3 p1eeewec 0x0000 port 1 eee wake error count register [15:0] 0x0e4 - 0x0e5 0x0e4 0x0e5 p1eeecs 0x8064 port 1 eee control/status and auto - negotiation expansion register [15:0] 0x0e6 - 0x0e7 0x0e6 0x0e7 p1lpirtc bl2lpic1 0x2 7 0x08 port 1 lpi recovery time counter register [7:0] buffer load to lpi control 1 register [7:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 88 revision 1.0 internal i/o register space mapping for switch control and configuration (0x000 ? 0x0ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x0e8 - 0x0e9 0x0e8 0x0e9 p2anpt 0x2 001 port 2 auto - negotiation next page transmit register [15:0] 0x0ea - 0x0eb 0x0ea 0x0eb p2alprnp 0x0000 port 2 auto - negotiation link partner received next page register [15:0] 0x0ec - 0x0ed 0x0ec 0x0ed p2eeea 0x0002 port 2 eee and link partner advertisement register [15:0] 0x0ee - 0x0ef 0x0ee 0x0ef p2eeewec 0x0000 port 2 eee wake error count register [15:0] 0x0f0 - 0x0f1 0x0f0 0x0f1 p2eeecs 0x8064 port 2 eee control/status and auto - negotiation expansion register [15:0] 0x0f2 - 0x0f3 0x0f2 0x0f3 p2lpirtc pcseeec 0x2 7 0x03 port 2 lpi recovery time counter register [7:0] pcs eee control register [7:0] 0x0f4 - 0x0f5 0x0f4 0x0f5 etlwtc 0x03e8 empty txq to lpi wait time control register [15:0] 0x0f6 - 0x0f7 0x0f6 0x0f7 bl2lpic2 0xc 040 buffer load to lpi control 2 register [15:0] 0x0f8 - 0x0ff 0x0f8 0x0ff reserved (8 - bytes ) don?t c are none internal i/o register space mapping for interrupts and global reset (0x100 ? 0x1ff) i/o register offset location register name default value description 16 - bit 8 - bit 0x100 - 0x1 23 0x100 0x123 reserved (36 - byte s ) don?t c are none 0x124 - 0x125 0x124 0x125 mbir 0x 0000 memory bist info register [15:0 ] 0x126 - 0x127 0x126 0x127 grr 0x0000 global reset register [15:0 ] 0x128 - 0x18f 0x128 0x18f reserved (104 - byte s ) don?t c are none 0x190 - 0x191 0x190 0x191 ier 0x0000 interrupt enable register [15:0 ] 0x192 - 0x193 0x192 0x193 isr 0x0 0 00 interrupt status register [15:0 ] 0x194 - 0x1ff 0x194 0x1ff reserved ( 10 8 - byte s) don?t c are none
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 89 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) i/o register offset location register name default value description 16 - bit 8 - bit 0x200 - 0x201 0x200 0x201 trig_err 0x0000 trigger output unit error register [11:0] 0x202 - 0x203 0x202 0x203 trig_active 0x0000 trigger output unit active register [11:0] 0x204 - 0x205 0x204 0x205 trig_done 0x0000 trigger output unit done register [11:0] 0x206 - 0x207 0x206 0x207 trig_en 0x0000 trigger output unit enable register [11:0] 0x208 - 0x209 0x208 0x209 trig_sw_rst 0x0000 trigger output unit software reset register [11:0] 0x20a - 0x20b 0x20a 0x20b trig12_pps_width 0x0000 trigger output unit 12 pps pulse width register 0x20c ? 0x21f 0x20c 0x21f reserved (20 - bytes) don?t c are none 0x220 - 0x221 0x220 0x221 trig1_tgt_nsl 0x0000 trigger output unit 1 target time in nanoseconds low - word register [15:0] 0x222 - 0x223 0x222 0x223 trig1_tgt_nsh 0x0000 trigger output unit 1 target time in nanoseconds high - word register [29:16] 0x224 - 0x225 0x224 0x225 trig1_tgt_sl 0x0000 trigger output unit 1 target time in seconds low - word register [15:0] 0x226 - 0x227 0x226 0x227 trig1_tgt_sh 0x0000 trigger output unit 1 target time in seconds high - word register [31:16] 0x228 - 0x229 0x228 0x229 trig1_cfg_1 0x3c 00 trigger output unit 1 configuration/control register1 0x22a - 0x22b 0x22a 0x22b trig1_cfg_2 0x0000 trigger output unit 1 configuration/control register2 0x22c - 0x22d 0x22c 0x22d trig1_cfg_3 0x0000 trigger output unit 1 configuration/control register3 0x22e - 0x22f 0x22e 0x22f trig1_cfg_4 0x0000 trigger output unit 1 configuration/control register4 0x230 - 0x231 0x230 0x231 trig1_cfg_5 0x0000 trigger output unit 1 configuration/control register5 0x232 - 0x233 0x232 0x233 trig1_cfg_6 0x0000 trigger output unit 1 configuration/control register6 0x234 - 0x235 0x234 0x235 trig1_cfg_7 0x0000 trigger output unit 1 configuration/control register7
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 90 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x236 - 0x237 0x236 0x237 trig1_cfg_8 0x0000 trigger output unit 1 configuration/control register8 0x238 ? 0x23f 0x238 0x23f reserved (8 - bytes) don?t c are none 0x240 - 0x241 0x240 0x241 trig2_tgt_nsl 0x0000 trigger output unit 2 target time in nanoseconds low - word register [15:0] 0x242 - 0x243 0x242 0x243 trig2_tgt_nsh 0x0000 trigger output unit 2 target time in nanoseconds high - word register [29:16] 0x244 - 0x245 0x244 0x245 trig2_tgt_sl 0x0000 trigger output unit 2 target time in seconds low - word register [15:0] 0x246 - 0x247 0x246 0x247 trig2_tgt_sh 0x0000 trigger output unit 2 target time in seconds high - word register [31:16] 0x248 - 0x249 0x248 0x249 trig2_cfg_1 0x3c 00 trigger output unit 2 configuration/control register1 0x24a - 0x24b 0x24a 0x24b trig2_cfg_2 0x0000 trigger output unit 2 configuration/control register2 0x24c - 0x24d 0x24c 0x24d trig2_cfg_3 0x0000 trigger output unit 2 configuration/control register3 0x24e - 0x24f 0x24e 0x24f trig2_cfg_4 0x0000 trigger output unit 2 configuration/control register4 0x250 - 0x251 0x250 0x251 trig2_cfg_5 0x0000 trigger output unit 2 configuration/control register5 0x252 - 0x253 0x252 0x253 trig2_cfg_6 0x0000 trigger output unit 2 configuration/control register6 0x254 - 0x255 0x254 0x255 trig2_cfg_7 0x0000 trigger output unit 2 configuration/control register7 0x256 - 0x257 0x256 0x257 trig2_cfg_8 0x0000 trigger output unit 2 configuration/control register8 0x258 ? 0x25f 0x258 0x25f reserved (8 - bytes) don?t c are none 0x260 - 0x261 0x260 0x261 trig3_tgt_nsl 0x0000 trigger output unit 3 target time in nanoseconds low - word register [15:0] 0x262 - 0x263 0x262 0x263 trig3_tgt_nsh 0x0000 trigger output unit 3 target time in nanoseconds high - word register [29:16]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 91 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x264 - 0x265 0x264 0x265 trig3_tgt_sl 0x0000 trigger output unit 3 target time in seconds low - word register [15:0] 0x266 - 0x267 0x266 0x267 trig3_tgt_sh 0x0000 trigger output unit 3 target time in seconds high - word register [31:16] 0x268 - 0x269 0x268 0x269 trig3_cfg_1 0x3c 00 trigger output unit 3 configuration/control register1 0x26a - 0x26b 0x26a 0x26b trig3_cfg_2 0x0000 trigger output unit 3 configuration/control register2 0x26c - 0x26d 0x26c 0x26d trig3_cfg_3 0x0000 trigger output unit 3 configuration/control register3 0x26e - 0x26f 0x26e 0x26f trig3_cfg_4 0x0000 trigger output unit 3 configuration/control register4 0x270 - 0x271 0x270 0x271 trig3_cfg_5 0x0000 trigger output unit 3 configuration/control register5 0x272 - 0x273 0x272 0x273 trig3_cfg_6 0x0000 trigger output unit 3 configuration/control register6 0x274 - 0x275 0x274 0x275 trig3_cfg_7 0x0000 trigger output unit 3 configuration/control register7 0x276 - 0x277 0x276 0x277 trig3_cfg_8 0x0000 trigger output unit 3 configuration/control register8 0x278 ? 0x27f 0x278 0x27f reserved (8 - bytes) don?t c are none 0x280 - 0x281 0x280 0x281 trig4_tgt_nsl 0x0000 trigger output unit 4 target time in nanoseconds low - word register [15:0] 0x282 - 0x283 0x282 0x283 trig4_tgt_nsh 0x0000 trigger output unit 4 target time in nanoseconds high - word register [29:16] 0x284 - 0x285 0x284 0x285 trig4_tgt_sl 0x0000 trigger output unit 4 target time in seconds low - word register [15:0] 0x286 - 0x287 0x286 0x287 trig4_tgt_sh 0x0000 trigger output unit 4 target time in seconds high - word register [31:16] 0x288 - 0x289 0x288 0x289 trig4_cfg_1 0x3c 00 trigger output unit 4 configuration/control register1 0x28a - 0x28b 0x28a 0x28b trig4_cfg_2 0x0000 trigger output unit 4 configuration/control register2 0x28c - 0x28d 0x28c 0x28d trig4_cfg_3 0x0000 trigger output unit 4 configuration/control register3
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 92 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x28e - 0x28f 0x28e 0x28f trig4_cfg_4 0x0000 trigger output unit 4 configuration/control register4 0x290 - 0x291 0x290 0x291 trig4_cfg_5 0x0000 trigger output unit 4 configuration/control register5 0x292 - 0x293 0x292 0x293 trig4_cfg_6 0x0000 trigger output unit 4 configuration/control register6 0x294 - 0x295 0x294 0x295 trig4_cfg_7 0x0000 trigger output unit 4 configuration/control register7 0x296 - 0x297 0x296 0x297 trig4_cfg_8 0x0000 trigger output unit 4 configuration/control register8 0x298 ? 0x29f 0x298 0x29f reserved (8 - bytes) don?t c are none 0x2a0 - 0x2a1 0x2a0 0x2a1 trig5_tgt_nsl 0x0000 trigger output unit 5 target time in nanoseconds low - word register [15:0] 0x2a2 - 0x2a3 0x2a2 0x2a3 trig5_tgt_nsh 0x0000 trigger output unit 5 target time in nanoseconds high - word register [29:16] 0x2a4 - 0x2a5 0x2a4 0x2a5 trig5_tgt_sl 0x0000 trigger output unit 5 target time in seconds low - word register [15:0] 0x2a6 - 0x2a7 0x2a6 0x2a7 trig5_tgt_sh 0x0000 trigger output unit 5 target time in seconds high - word register [31:16] 0x2a8 - 0x2a9 0x2a8 0x2a9 trig5_cfg_1 0x3c 00 trigger output unit 5 configuration/control register1 0x2aa - 0x2ab 0x2aa 0x2ab trig5_cfg_2 0x0000 trigger output unit 5 configuration/control register2 0x2ac - 0x2ad 0x2ac 0x2ad trig5_cfg_3 0x0000 trigger output unit 5 configuration/control register3 0x2ae - 0x2af 0x2ae 0x2af trig5_cfg_4 0x0000 trigger output unit 5 configuration/control register4 0x2b0 - 0x2b1 0x2b0 0x2b1 trig5_cfg_5 0x0000 trigger output unit 5 configuration/control register5 0x2b2 - 0x2b3 0x2b2 0x2b3 trig5_cfg_6 0x0000 trigger output unit 5 configuration/control register6 0x2b4 - 0x2b5 0x2b4 0x2b5 trig5_cfg_7 0x0000 trigger output unit 5 configuration/control register7 0x2b6 - 0x2b7 0x2b6 0x2b7 trig5_cfg_8 0x0000 trigger output unit 5 configuration/control register8
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 93 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x2b8 ? 0x2bf 0x2b8 0x2bf reserved (8 - bytes) don?t c are none 0x2c0 - 0x2c1 0x2c0 0x2c1 trig6_tgt_nsl 0x0000 trigger output unit 6 target time in nanoseconds low - word register [15:0] 0x2c2 - 0x2c3 0x2c2 0x2c3 trig6_tgt_nsh 0x0000 trigger output unit 6 target time in nanoseconds high - word register [29:16] 0x2c4 - 0x2c5 0x2c4 0x2c5 trig6_tgt_sl 0x0000 trigger output unit 6 target time in seconds low - word register [15:0] 0x2c6 - 0x2c7 0x2c6 0x2c7 trig6_tgt_sh 0x0000 trigger output unit 6 target time in seconds high - word register [31:16] 0x2c8 - 0x2c9 0x2c8 0x2c9 trig6_cfg_1 0x3c 00 trigger output unit 6 configuration/control register1 0x2ca - 0x2cb 0x2ca 0x2cb trig6_cfg_2 0x0000 trigger output unit 6 configuration/control register2 0x2cc - 0x2cd 0x2cc 0x2cd trig6_cfg_3 0x0000 trigger output unit 6 configuration/control register3 0x2ce - 0x2cf 0x2ce 0x2cf trig6_cfg_4 0x0000 trigger output unit 6 configuration/control register4 0x2d0 - 0x2d1 0x2d0 0x2d1 trig6_cfg_5 0x0000 trigger output unit 6 configuration/control register5 0x2d2 - 0x2d3 0x2d2 0x2d3 trig6_cfg_6 0x0000 trigger output unit 6 configuration/control register6 0x2d4 - 0x2d5 0x2d4 0x2d5 trig6_cfg_7 0x0000 trigger output unit 6 configuration/control register7 0x2d6 - 0x2d7 0x2d6 0x2d7 trig6_cfg_8 0x0000 trigger output unit 6 configuration/control register8 0x2d8 ? 0x2df 0x2d8 0x2df reserved (8 - bytes) don?t c are none 0x2e0 - 0x2e1 0x2e0 0x2e1 trig7_tgt_nsl 0x0000 trigger output unit 7 target time in nanoseconds low - word register [15:0] 0x2e2 - 0x2e3 0x2e2 0x2e3 trig7_tgt_nsh 0x0000 trigger output unit 7 target time in nanoseconds high - word register [29:16] 0x2e4 - 0x2e5 0x2e4 0x2e5 trig7_tgt_sl 0x0000 trigger output unit 7 target time in seconds low - word register [15:0] 0x2e6 - 0x2e7 0x2e6 0x2e7 trig7_tgt_sh 0x0000 trigger output unit 7 target time in seconds high - word register [31:16] 0x2e8 - 0x2e9 0x2e8 0x2e9 trig7_cfg_1 0x3c 00 trigger output unit 7 configuration/control register1
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 94 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x2ea - 0x2eb 0x2ea 0x2eb trig7_cfg_2 0x0000 trigger output unit 7 configuration/control register2 0x2ec - 0x2ed 0x2ec 0x2ed trig7_cfg_3 0x0000 trigger output unit 7 configuration/control register3 0x2ee - 0x2ef 0x2ee 0x2ef trig7_cfg_4 0x0000 trigger output unit 7 configuration/control register4 0x2f0 - 0x2f1 0x2f0 0x2f1 trig7_cfg_5 0x0000 trigger output unit 7 configuration/control register5 0x2f2 - 0x2f3 0x2f2 0x2f3 trig7_cfg_6 0x0000 trigger output unit 7 configuration/control register6 0x2f4 - 0x2f5 0x2f4 0x2f5 trig7_cfg_7 0x0000 trigger output unit 7 configuration/control register7 0x2f6 - 0x2f7 0x2f6 0x2f7 trig7_cfg_8 0x0000 trigger output unit 7 configuration/control register8 0x2f8 ? 0x2ff 0x2f8 0x2ff reserved (8 - bytes) don?t c are none 0x300 - 0x301 0x300 0x301 trig8_tgt_nsl 0x0000 trigger output unit 8 target time in nanoseconds low - word register [15:0] 0x302 - 0x303 0x302 0x303 trig8_tgt_nsh 0x0000 trigger output unit 8 target time in nanoseconds high - word register [29:16] 0x304 - 0x305 0x304 0x305 trig8_tgt_sl 0x0000 trigger output unit 8 target time in seconds low - word register [15:0] 0x306 - 0x307 0x306 0x307 trig8_tgt_sh 0x0000 trigger output unit 8 target time in seconds high - word register [31:16] 0x308 - 0x309 0x308 0x309 trig8_cfg_1 0x3c 00 trigger output unit 8 configuration/control register1 0x30a - 0x30b 0x30a 0x30b trig8_cfg_2 0x0000 trigger output unit 8 configuration/control register2 0x30c - 0x30d 0x30c 0x30d trig8_cfg_3 0x0000 trigger output unit 8 configuration/control register3 0x30e - 0x30f 0x30e 0x30f trig8_cfg_4 0x0000 trigger output unit 8 configuration/control register4 0x310 - 0x311 0x310 0x311 trig8_cfg_5 0x0000 trigger output unit 8 configuration/control register5 0x312 - 0x313 0x312 0x313 trig8_cfg_6 0x0000 trigger output unit 8 configuration/control register6 0x314 - 0x315 0x314 0x315 trig8_cfg_7 0x0000 trigger output unit 8 configuration/control register7
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 95 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x316 - 0x317 0x316 0x317 trig8_cfg_8 0x0000 trigger output unit 8 configuration/control register8 0x318 ? 0x31f 0x318 0x31f reserved (8 - bytes) don?t c are none 0x320 - 0x321 0x320 0x321 trig9_tgt_nsl 0x0000 trigger output unit 9 target time in nanoseconds low - word register [15:0] 0x322 - 0x323 0x322 0x323 trig9_tgt_nsh 0x0000 trigger output unit 9 target time in nanoseconds high - word register [29:16] 0x324 - 0x325 0x324 0x325 trig9_tgt_sl 0x0000 trigger output unit 9 target time in seconds low - word register [15:0] 0x326 - 0x327 0x326 0x327 trig9_tgt_sh 0x0000 trigger output unit 9 target time in seconds high - word register [31:16] 0x328 - 0x329 0x328 0x329 trig9_cfg_1 0x3c 00 trigger output unit 9 configuration/control register1 0x32a - 0x32b 0x32a 0x32b trig9_cfg_2 0x0000 trigger output unit 9 configuration/control register2 0x32c - 0x32d 0x32c 0x32d trig9_cfg_3 0x0000 trigger output unit 9 configuration/control register3 0x32e - 0x32f 0x32e 0x32f trig9_cfg_4 0x0000 trigger output unit 9 configuration/control register4 0x330 - 0x331 0x330 0x331 trig9_cfg_5 0x0000 trigger output unit 9 configuration/control register5 0x332 - 0x333 0x332 0x333 trig9_cfg_6 0x0000 trigger output unit 9 configuration/control register6 0x334 - 0x335 0x334 0x335 trig9_cfg_7 0x0000 trigger output unit 9 configuration/control register7 0x336 - 0x337 0x336 0x337 trig9_cfg_8 0x0000 trigger output unit 9 configuration/control register8 0x338 ? 0x33f 0x338 0x33f reserved (8 - bytes) don?t c are none 0x340 - 0x341 0x340 0x341 trig10_tgt_nsl 0x0000 trigger output unit 10 target time in nanoseconds low - word register [15:0] 0x342 - 0x343 0x342 0x343 trig10_tgt_nsh 0x0000 trigger output unit 10 target time in nanoseconds high - word register [29:16] 0x344 - 0x345 0x344 0x345 trig10_tgt_sl 0x0000 trigger output unit 10 target time in seconds low - word register [15:0] 0x346 - 0x347 0x346 0x347 trig10_tgt_sh 0x0000 trigger output unit 10 target time in seconds high - word register [31:16]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 96 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x348 - 0x349 0x348 0x349 trig10_cfg_1 0x3c 00 trigger output unit 10 configuration/control register1 0x34a - 0x34b 0x34a 0x34b trig10_cfg_2 0x0000 trigger output unit 10 configuration/control register2 0x34c - 0x34d 0x34c 0x34d trig10_cfg_3 0x0000 trigger output unit 10 configuration/control register3 0x34e - 0x34f 0x34e 0x34f trig10_cfg_4 0x0000 trigger output unit 10 configuration/control register4 0x350 - 0x351 0x350 0x351 trig10_cfg_5 0x0000 trigger output unit 10 configuration/control register5 0x352 - 0x353 0x352 0x353 trig10_cfg_6 0x0000 trigger output unit 10 configuration/control register6 0x354 - 0x355 0x354 0x355 trig10_cfg_7 0x0000 trigger output unit 10 configuration/control register7 0x356 - 0x357 0x356 0x357 trig10_cfg_8 0x0000 trigger output unit 10 configuration/control register8 0x358 ? 0x35f 0x358 0x35f reserved (8 - bytes) don?t c are none 0x360 - 0x361 0x360 0x361 trig11_tgt_nsl 0x0000 trigger output unit 11 target time in nanoseconds low - word register [15:0] 0x362 - 0x363 0x362 0x363 trig11_tgt_nsh 0x0000 trigger output unit 11 target time in nanoseconds high - word register [29:16] 0x364 - 0x365 0x364 0x365 trig11_tgt_sl 0x0000 trigger output unit 11 target time in seconds low - word register [15:0] 0x366 - 0x367 0x366 0x367 trig11_tgt_sh 0x0000 trigger output unit 11 target time in seconds high - word register [31:16] 0x368 - 0x369 0x368 0x369 trig11_cfg_1 0x3c 00 trigger output unit 11 configuration/control register1 0x36a - 0x36b 0x36a 0x36b trig11_cfg_2 0x0000 trigger output unit 11 configuration/control register2 0x36c - 0x36d 0x36c 0x36d trig11_cfg_3 0x0000 trigger output unit 11 configuration/control register3 0x36e - 0x36f 0x36e 0x36f trig11_cfg_4 0x0000 trigger output unit 11 configuration/control register4 0x370 - 0x371 0x370 0x371 trig11_cfg_5 0x0000 trigger output unit 11 configuration/control register5 0x372 - 0x373 0x372 0x373 trig11_cfg_6 0x0000 trigger output unit 11 configuration/control register6
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 97 revision 1.0 internal i/o register space mapping for ptp trigger output (12 unit s, 0x200 ? 0x3ff) (continued) i/o register offset location register name default value description 16 - bit 8 - bit 0x374 - 0x375 0x374 0x375 trig11_cfg_7 0x0000 trigger output unit 11 configuration/control register7 0x376 - 0x377 0x376 0x377 trig11_cfg_8 0x0000 trigger output unit 11 configuration/control register8 0x378 ? 0x37f 0x378 0x37f reserved (8 - bytes) don?t c are none 0x380 - 0x381 0x380 0x381 trig12_tgt_nsl 0x0000 trigger output unit 12 target time in nanoseconds low - word register [15:0] 0x382 - 0x383 0x382 0x383 trig12_tgt_nsh 0x0000 trigger output unit 12 target time in nanoseconds high - word register [29:16] 0x384 - 0x385 0x384 0x385 trig12_tgt_sl 0x0000 trigger output unit 12 target time in seconds low - word register [15:0] 0x386 - 0x387 0x386 0x387 trig12_tgt_sh 0x0000 trigger output unit 12 target time in seconds high - word register [31:16] 0x388 - 0x389 0x388 0x389 trig12_cfg_1 0x3c 00 trigger output unit 12 configuration/control register1 0x38a - 0x38b 0x38a 0x38b trig12_cfg_2 0x0000 trigger output unit 12 configuration/control register2 0x38c - 0x38d 0x38c 0x38d trig12_cfg_3 0x0000 trigger output unit 12 configuration/control register3 0x38e - 0x38f 0x38e 0x38f trig12_cfg_4 0x0000 trigger output unit 12 configuration/control register4 0x390 - 0x391 0x390 0x391 trig12_cfg_5 0x0000 trigger output unit 12 configuration/control register5 0x392 - 0x393 0x392 0x393 trig12_cfg_6 0x0000 trigger output unit 12 configuration/control register6 0x394 - 0x395 0x394 0x395 trig12_cfg_7 0x0000 trigger output unit 12 configuration/control register7 0x396 - 0x397 0x396 0x397 trig12_cfg_8 0x0000 trigger output unit 12 configuration/control register8 0x398 ? 0x3ff 0x398 0x3ff reserved (104 - bytes) don?t c are none
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 98 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) i/o register offset location register name default value description 16- bit 8 - bit 0x400 - 0x401 0x400 0x401 ts_rdy 0x0000 input unit ready register [11:0] 0x402 - 0x403 0x402 0x403 ts_en 0x0000 timestamp input unit enable register [11:0] 0x404 - 0x405 0x404 0x405 ts_sw_rst 0x0000 timestamp input unit software reset register [11:0] 0x406 ? 0x41f 0x406 0x41f reserved (26 - bytes) don?t c are none 0x420 ? 0x421 0x420 0x421 ts1_status 0x0000 timestamp input unit 1 status register 0x422 ? 0x423 0x422 0x423 ts1_cfg 0x0000 timestamp input unit 1 configuration/control register 0x424 ? 0x425 0x424 0x425 ts1_smpl1_nsl 0x0000 timestamp unit 1 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x426 ? 0x427 0x426 0x427 ts1_smpl1_nsh 0x0000 timestamp unit 1 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x428 ? 0x429 0x428 0x429 ts1_smpl1_sl 0x0000 timestamp unit 1 input sample time (1 st ) in seconds low - word register [15:0] 0x42a ? 0x42b 0x42a 0x42b ts1_smpl1_sh 0x0000 timestamp unit 1 input sample time (1 st ) in seconds high - word register [31:16] 0x42c ? 0x42d 0x42c 0x42d ts1_smpl1_sub_ns 0x0000 timestamp unit 1 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x42e ? 0x433 0x42e 0x433 reserved (6 - bytes) don?t c are none 0x434 ? 0x435 0x434 0x435 ts1_smpl2_nsl 0x0000 timestamp unit 1 input sample time (2nd) in nanoseconds low - word register [15:0] 0x436 ? 0x437 0x436 0x437 ts1_smpl2_nsh 0x0000 timestamp unit 1 input sample time (2nd) in nanoseconds high - word register [29:16] 0x438 ? 0x439 0x438 0x439 ts1_smpl2_sl 0x0000 timestamp unit 1 input sample time (2nd) in seconds low - word register [15:0] 0x43a ? 0x43b 0x43a 0x43b ts1_smpl2_sh 0x0000 timestamp unit 1 input sample time (2nd) in seconds high - word register [31:16] 0x43c ? 0x43d 0x43c 0x43d ts1_smpl2_sub_ns 0x0000 timestamp unit 1 input sample time (2nd) in sub - nanoseconds register [2:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 99 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x43e ? 0x43f 0x43e 0x43f reserved (2 - bytes) don?t c are none 0x440 ? 0x441 0x440 0x441 ts2_status 0x0000 timestamp input unit 2 status register 0x442 ? 0x443 0x442 0x443 ts2_cfg 0x0000 timestamp input unit 2 configuration/control register 0x444 ? 0x445 0x444 0x445 ts2_smpl1_nsl 0x0000 timestamp unit 2 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x446 ? 0x447 0x446 0x447 ts2_smpl1_nsh 0x0000 timestamp unit 2 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x448 ? 0x449 0x448 0x449 ts2_smpl1_sl 0x0000 timestamp unit 2 input sample time (1 st ) in seconds low - word register [15:0] 0x44a ? 0x44b 0x44a 0x44b ts2_smpl1_sh 0x0000 timestamp unit 2 input sample time (1 st ) in seconds high - word register [31:16] 0x44c ? 0x44d 0x44c 0x44d ts2_smpl1_sub_ns 0x0000 timestamp unit 2 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x44e ? 0x453 0x44e 0x453 reserved (6 - bytes) don?t c are none 0x454 ? 0x455 0x454 0x455 ts2_smpl2_nsl 0x0000 timestamp unit 2 input sample time (2nd) in nanoseconds low - word register [15:0] 0x456 ? 0x457 0x456 0x457 ts2_smpl2_nsh 0x0000 timestamp unit 2 input sample time (2nd) in nanoseconds high - word register [29:16] 0x458 ? 0x459 0x458 0x459 ts2_smp2_sl 0x0000 timestamp unit 2 input sample time (2nd) in seconds low - word register [15:0] 0x45a ? 0x45b 0x45a 0x45b ts2_smpl2_sh 0x0000 timestamp unit 2 input sample time (2nd) in seconds high - word register [31:16] 0x45c ? 0x45d 0x45c 0x45d ts2_smpl2_sub_ns 0x0000 timestamp unit 2 input sample time (2nd) in sub - nanoseconds register [2:0] 0x45e ? 0x45f 0x45e 0x45f reserved (2 - bytes) don?t c are none 0x460 ? 0x461 0x460 0x461 ts3_status 0x0000 timestamp input unit 3 status register 0x462 ? 0x463 0x462 0x463 ts3_cfg 0x0000 timestamp input unit 3 configuration/control register
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 100 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x464 ? 0x465 0x464 0x465 ts3_smpl1_nsl 0x0000 timestamp unit 3 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x466 ? 0x467 0x466 0x467 ts3_smpl1_nsh 0x0000 timestamp unit 3 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x468 ? 0x469 0x468 0x469 ts3_smpl1_sl 0x0000 timestamp unit 3 input sample time (1 st ) in seconds low - word register [15:0] 0x46a ? 0x46b 0x46a 0x46b ts3_smpl1_sh 0x0000 timestamp unit 3 input sample time (1 st ) in seconds high - word register [31:16] 0x46c ? 0x46d 0x46c 0x46d ts3_smpl1_sub_ns 0x0000 timestamp unit 3 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x46e ? 0x473 0x46e 0x473 reserved (6 - bytes) don?t c are none 0x474 ? 0x475 0x474 0x475 ts3_smpl2_nsl 0x0000 timestamp unit 3 input sample time (2nd) in nanoseconds low - word register [15:0] 0x476 ? 0x477 0x476 0x477 ts3_smpl2_nsh 0x0000 timestamp unit 3 input sample time (2nd) in nanoseconds high - word register [29:16] 0x478 ? 0x479 0x478 0x479 ts3_smp2_sl 0x0000 timestamp unit 3 input sample time (2nd) in seconds low - word register [15:0] 0x47a ? 0x47b 0x47a 0x47b ts3_smpl2_sh 0x0000 timestamp unit 3 input sample time (2nd) in seconds high - word register [31:16] 0x47c ? 0x47d 0x47c 0x47d ts3_smpl2_sub_ns 0x0000 timestamp unit 3 input sample time (2nd) in sub - nanoseconds register [2:0] 0x47e ? 0x47f 0x47e 0x47f reserved (2 - bytes) don?t c are none 0x480 ? 0x481 0x480 0x481 ts4_status 0x0000 timestamp input unit 4 status register 0x482 ? 0x483 0x482 0x483 ts4_cfg 0x0000 timestamp input unit 4 configuration/control register 0x484 ? 0x485 0x484 0x485 ts4_smpl1_nsl 0x0000 timestamp unit 4 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x486 ? 0x487 0x486 0x487 ts4_smpl1_nsh 0x0000 timestamp unit 4 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x488 ? 0x489 0x488 0x489 ts4_smpl1_sl 0x0000 timestamp unit 4 input sample time (1 st ) in seconds low - word register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 101 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x48a ? 0x48b 0x48a 0x48b ts4_smpl1_sh 0x0000 timestamp unit 4 input sample time (1 st ) in seconds high - word register [31:16] 0x48c ? 0x48d 0x48c 0x48d ts4_smpl1_sub_ns 0x0000 timestamp unit 4 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x48e ? 0x493 0x48e 0x493 reserved (6 - bytes) don?t c are none 0x494 ? 0x495 0x494 0x495 ts4_smpl2_nsl 0x0000 timestamp unit 4 input sample time (2nd) in nanoseconds low - word register [15:0] 0x496 ? 0x497 0x496 0x497 ts4_smpl2_nsh 0x0000 timestamp unit 4 input sample time (2nd) in nanoseconds high - word register [29:16] 0x498 ? 0x499 0x498 0x499 ts4_smp2_sl 0x0000 timestamp unit 4 input sample time (2nd) in seconds low - word register [15:0] 0x49a ? 0x49b 0x49a 0x49b ts4_smpl2_sh 0x0000 timestamp unit 4 input sample time (2nd) in seconds high - word register [31:16] 0x49c ? 0x49d 0x49c 0x49d ts4_smpl2_sub_ns 0x0000 timestamp unit 4 input sample time (2nd) in sub - nanoseconds register [2:0] 0x49e ? 0x49f 0x49e 0x49f reserved (2 - bytes) don?t c are none 0x4a0 ? 0x4a1 0x4a0 0x4a1 ts5_status 0x0000 timestamp input unit 5 status register 0x4a2 ? 0x4a3 0x4a2 0x4a3 ts5_cfg 0x0000 timestamp input unit 5 configuration/control register 0x4a4 ? 0x4a5 0x4a4 0x4a5 ts5_smpl1_nsl 0x0000 timestamp unit 5 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x4a6 ? 0x4a7 0x4a6 0x4a7 ts5_smpl1_nsh 0x0000 timestamp unit 5 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x4a8 ? 0x4a9 0x4a8 0x4a9 ts5_smpl1_sl 0x0000 timestamp unit 5 input sample time (1 st ) in seconds low - word register [15:0] 0x4aa ? 0x4ab 0x4aa 0x4ab ts5_smpl1_sh 0x0000 timestamp unit 5 input sample time (1 st ) in seconds high - word register [31:16] 0x4ac ? 0x4ad 0x4ac 0x4ad ts5_smpl1_sub_ns 0x0000 timestamp unit 5 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x4ae ? 0x4b3 0x4ae 0x4b3 reserved (6 - bytes) don?t c are none
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 102 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x4b4 ? 0x4b5 0x4b4 0x4b5 ts5_smpl2_nsl 0x0000 timestamp unit 5 input sample time (2nd) in nanoseconds low - word register [15:0] 0x4b6 ? 0x4b7 0x4b6 0x4b7 ts5_smpl2_nsh 0x0000 timestamp unit 5 input sample time (2nd) in nanoseconds high - word register [29:16] 0x4b8 ? 0x4b9 0x4b8 0x4b9 ts5_smp2_sl 0x0000 timestamp unit 5 input sample time (2nd) in seconds low - word register [15:0] 0x4ba ? 0x4bb 0x4ba 0x4bb ts5_smpl2_sh 0x0000 timestamp unit 5 input sample time (2nd) in seconds high - word register [31:16] 0x4bc ? 0x4bd 0x4bc 0x4bd ts5_smpl2_sub_ns 0x0000 timestamp unit 5 input sample time (2nd) in sub - nanoseconds register [2:0] 0x4be ? 0x4bf 0x4be 0x4bf reserved (2 - bytes) don?t c are none 0x4c0 ? 0x4c1 0x4c0 0x4c1 ts6_status 0x0000 timestamp input unit 6 status register 0x4c2 ? 0x4c3 0x4c2 0x4c3 ts6_cfg 0x0000 timestamp input unit 6 configuration/control register 0x4c4 ? 0x4c5 0x4c4 0x4c5 ts6_smpl1_nsl 0x0000 timestamp unit 6 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x4c6 ? 0x4c7 0x4c6 0x4c7 ts6_smpl1_nsh 0x0000 timestamp unit 6 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x4c8 ? 0x4c9 0x4c8 0x4c9 ts6_smpl1_sl 0x0000 timestamp unit 6 input sample time (1 st ) in seconds low - word register [15:0] 0x4ca ? 0x4cb 0x4ca 0x4cb ts6_smpl1_sh 0x0000 timestamp unit 6 input sample time (1 st ) in seconds high - word register [31:16] 0x4cc ? 0x4cd 0x4cc 0x4cd ts6_smpl1_sub_ns 0x0000 timestamp unit 6 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x4ce ? 0x4d3 0x4ce 0x4d3 reserved (6 - bytes) don?t c are none 0x4d4 ? 0x4d5 0x4d4 0x4d5 ts6_smpl2_nsl 0x0000 timestamp unit 6 input sample time (2nd) in nanoseconds low - word register [15:0] 0x4d6 ? 0x4d7 0x4d6 0x4d7 ts6_smpl2_nsh 0x0000 timestamp unit 6 input sample time (2nd) in nanoseconds high - word register [29:16] 0x4d8 ? 0x4d9 0x4d8 0x4d9 ts6_smp2_sl 0x0000 timestamp unit 6 input sample time (2nd) in seconds low - word register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 103 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x4da ? 0x4db 0x4da 0x4db ts6_smpl2_sh 0x0000 timestamp unit 6 input sample time (2nd) in seconds high - word register [31:16] 0x4dc ? 0x4dd 0x4dc 0x4dd ts6_smpl2_sub_ns 0x0000 timestamp unit 6 input sample time (2nd) in sub - nanoseconds register [2:0] 0x4de ? 0x4df 0x4de 0x4df reserved (2 - bytes) don?t c are none 0x4e0 ? 0x4e1 0x4e0 0x4e1 ts7_status 0x0000 timestamp input unit 7 status register 0x4e2 ? 0x4e3 0x4e2 0x4e3 ts7_cfg 0x0000 timestamp input unit 7 configuration/control register 0x4e4 ? 0x4e5 0x4e4 0x4e5 ts7_smpl1_nsl 0x0000 timestamp unit 7 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x4e6 ? 0x4e7 0x4e6 0x4e7 ts7_smpl1_nsh 0x0000 timestamp unit 7 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x4e8 ? 0x4e9 0x4e8 0x4e9 ts7_smpl1_sl 0x0000 timestamp unit 7 input sample time (1 st ) in seconds low - word register [15:0] 0x4ea ? 0x4eb 0x4ea 0x4eb ts7_smpl1_sh 0x0000 timestamp unit 7 input sample time (1 st ) in seconds high - word register [31:16] 0x4ec ? 0x4ed 0x4ec 0x4ed ts7_smpl1_sub_ns 0x0000 timestamp unit 7 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x4ee ? 0x4f3 0x4ee 0x4f3 reserved (6 - bytes ) don?t c are none 0x4f4 ? 0x4f5 0x4f4 0x4f5 ts7_smpl2_nsl 0x0000 timestamp unit 7 input sample time (2nd) in nanoseconds low - word register [15:0] 0x4f6 ? 0x4f7 0x4f6 0x4f7 ts7_smpl2_nsh 0x0000 timestamp unit 7 input sample time (2nd) in nanoseconds high - word register [29:16] 0x4f8 ? 0x4f9 0x4f8 0x4f9 ts7_smp2_sl 0x0000 timestamp unit 7 input sample time (2nd) in seconds low - word register [15:0] 0x4fa ? 0x4fb 0x4fa 0x4fb ts7_smpl2_sh 0x0000 timestamp unit 7 input sample time (2nd) in seconds high - word register [31:16] 0x4fc ? 0x4fd 0x4fc 0x4fd ts7_smpl2_sub_ns 0x0000 timestamp unit 7 input sample time (2nd) in sub - nanoseconds register [2:0] 0x4fe ? 0x4ff 0x4fe 0x4ff reserved (2 - bytes) don?t c are none
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 104 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x500 ? 0x501 0x500 0x501 ts8_status 0x0000 timestamp input unit 8 status register 0x502 ? 0x503 0x502 0x503 ts8_cfg 0x0000 timestamp input unit 8 configuration/control register 0x504 ? 0x505 0x504 0x505 ts8_smpl1_nsl 0x0000 timestamp unit 8 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x506 ? 0x507 0x506 0x507 ts8_smpl1_nsh 0x0000 timestamp unit 8 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x508 ? 0x509 0x508 0x509 ts8_smpl1_sl 0x0000 timestamp unit 8 input sample time (1 st ) in seconds low - word register [15:0] 0x50a ? 0x50b 0x50a 0x50b ts8_smpl1_sh 0x0000 timestamp unit 8 input sample time (1 st ) in seconds high - word register [31:16] 0x50c ? 0x50d 0x50c 0x50d ts8_smpl1_sub_ns 0x0000 timestamp unit 8 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x50e ? 0x513 0x50e 0x513 reserved (6 - bytes) don?t c are none 0x514 ? 0x515 0x514 0x515 ts8_smpl2_nsl 0x0000 timestamp unit 8 input sample time (2nd) in nanoseconds low - word register [15:0] 0x516 ? 0x517 0x516 0x517 ts8_smpl2_nsh 0x0000 timestamp unit 8 input sample time (2nd) in nanoseconds high - word register [29:16] 0x518 ? 0x519 0x518 0x519 ts8_smp2_sl 0x0000 timestamp unit 8 input sample time (2nd) in seconds low - word register [15:0] 0x51a ? 0x51b 0x51a 0x51b ts8_smpl2_sh 0x0000 timestamp unit 8 input sample time (2nd) in seconds high - word register [31:16] 0x51c ? 0x51d 0x51c 0x51d ts8_smpl2_sub_ns 0x0000 timestamp unit 8 input sample time (2nd) in sub - nanoseconds register [2:0] 0x51e ? 0x51f 0x51e 0x51f reserved (2 - bytes) don?t c are none 0x520 ? 0x521 0x520 0x521 ts9_status 0x0000 timestamp input unit 9 status register 0x522 ? 0x523 0x522 0x523 ts9_cfg 0x0000 timestamp input unit 9 configuration/control register 0x524 ? 0x525 0x524 0x525 ts9_smpl1_nsl 0x0000 timestamp unit 9 input sample time (1 st ) in nanoseconds high - word register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 105 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x526 ? 0x527 0x526 0x527 ts9_smpl1_nsh 0x0000 timestamp unit 9 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x528 ? 0x529 0x528 0x529 ts9_smpl1_sl 0x0000 timestamp unit 9 input sample time (1 st ) in seconds high - word register [15:0] 0x52a ? 0x52b 0x52a 0x52b ts9_smpl1_sh 0x0000 timestamp unit 9 input sample time (1 st ) in seconds high - word register [31:16] 0x52c ? 0x52d 0x52c 0x52d ts9_smpl1_sub_ns 0x0000 timestamp unit 9 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x52e ? 0x533 0x52e 0x533 reserved (6 - bytes) don?t c are none 0x534 ? 0x535 0x534 0x535 ts9_smpl2_nsl 0x0000 timestamp unit 9 input sample time (2nd) in nanoseconds low - word register [15:0] 0x536 ? 0x537 0x536 0x537 ts9_smpl2_nsh 0x0000 timestamp unit 9 input sample time (2nd) in nanoseconds high - word register [29:16] 0x538 ? 0x539 0x538 0x539 ts9_smp2_sl 0x0000 timestamp unit 9 input sample time (2nd) in seconds low - word register [15:0] 0x53a ? 0x53b 0x53a 0x53b ts9_smpl2_sh 0x0000 timestamp unit 9 input sample time (2nd) in seconds high - word register [31:16] 0x53c ? 0x53d 0x53c 0x53d ts9_smpl2_sub_ns 0x0000 timestamp unit 9 input sample time (2nd) in sub - nanoseconds register [2:0] 0x53e ? 0x53f 0x53e 0x53f reserved (2 - bytes) don?t c are none 0x540 ? 0x541 0x540 0x541 ts10_status 0x0000 timestamp input unit 10 status register 0x542 ? 0x543 0x542 0x543 ts10_cfg 0x0000 timestamp input unit 10 configuration/control register 0x544 ? 0x545 0x544 0x545 ts10_smpl1_nsl 0x0000 timestamp unit 10 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x546 ? 0x547 0x546 0x547 ts10_smpl1_nsh 0x0000 timestamp unit 10 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x548 ? 0x549 0x548 0x549 ts10_smpl1_sl 0x0000 timestamp unit 10 input sample time (1 st ) in seconds low - word register [15:0] 0x54a ? 0x54b 0x54a 0x54b ts10_smpl1_sh 0x0000 timestamp unit 10 input sample time (1 st ) in seconds high - word register [31:16]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 106 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x54c ? 0x54d 0x54c 0x54d ts10_smpl1_sub_ns 0x0000 timestamp unit 10 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x54e ? 0x553 0x54e 0x553 reserved (6 - bytes) don?t c are none 0x554 ? 0x555 0x554 0x555 ts10_smpl2_nsl 0x0000 timestamp unit 10 input sample time (2nd) in nanoseconds low - word register [15:0] 0x556 ? 0x557 0x556 0x557 ts10_smpl2_nsh 0x0000 timestamp unit 10 input sample time (2nd) in nanoseconds high - word register [29:16] 0x558 ? 0x559 0x558 0x559 ts10_smp2_sl 0x0000 timestamp unit 10 input sample time (2nd) in seconds low - word register [15:0] 0x55a ? 0x55b 0x55a 0x55b ts10_smpl2_sh 0x0000 timestamp unit 10 input sample time (2nd) in seconds high - word register [31:16] 0x55c ? 0x55d 0x55c 0x55d ts10_smpl2_sub_ns 0x0000 timestamp unit 10 input sample time (2nd) in sub - nanoseconds register [2:0] 0x55e ? 0x55f 0x55e 0x55f reserved (2 - bytes) don?t c are none 0x560 ? 0x561 0x560 0x561 ts11_status 0x0000 timestamp input unit 11 status register 0x562 ? 0x563 0x562 0x563 ts11_cfg 0x0000 timestamp input unit 11 configuration/control register 0x564 ? 0x565 0x564 0x565 ts11_smpl1_nsl 0x0000 timestamp unit 11 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x566 ? 0x567 0x566 0x567 ts11_smpl1_nsh 0x0000 timestamp unit 11 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x568 ? 0x569 0x568 0x569 ts11_smpl1_sl 0x0000 timestamp unit 11 input sample time (1 st ) in seconds low - word register [15:0] 0x56a ? 0x56b 0x56a 0x56b ts11_smpl1_sh 0x0000 timestamp unit 11 input sample time (1 st ) in seconds high - word register [31:16] 0x56c ? 0x56d 0x56c 0x56d ts11_smpl1_sub_ns 0x0000 timestamp unit 11 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x56e ? 0x573 0x56e 0x573 reserved (6 - bytes) don?t c are none 0x574 ? 0x575 0x574 0x575 ts11_smpl2_nsl 0x0000 timestamp unit 11 input sample time (2nd) in nanoseconds low - word register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 107 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x576 ? 0x577 0x576 0x577 ts11_smpl2_nsh 0x0000 timestamp unit 11 input sample time (2nd) in nanoseconds high - word register [29:16] 0x578 ? 0x579 0x578 0x579 ts11_smp2_sl 0x0000 timestamp unit 11 input sample time (2nd) in seconds low - word register [15:0] 0x57a ? 0x57b 0x57a 0x57b ts11_smpl2_sh 0x0000 timestamp unit 11 input sample time (2nd) in seconds high - word register [31:16] 0x57c ? 0x57d 0x57c 0x57d ts11_smpl2_sub_ns 0x0000 timestamp unit 11 input sample time (2nd) in sub - nanoseconds register [2:0] 0x57e ? 0x57f 0x57e 0x57f reserved (2 - bytes) don?t c are none 0x580 ? 0x581 0x580 0x581 ts12_status 0x0000 timestamp input unit 12 status register 0x582 ? 0x583 0x582 0x583 ts12_cfg 0x0000 timestamp input unit 12 configuration/control register 0x584 ? 0x585 0x584 0x585 ts12_smpl1_nsl 0x0000 timestamp unit 12 input sample time (1 st ) in nanoseconds low - word register [15:0] 0x586 ? 0x587 0x586 0x587 ts12_smpl1_nsh 0x0000 timestamp unit 12 input sample time (1 st ) in nanoseconds high - word register [29:16] 0x588 ? 0x589 0x588 0x589 ts12_smpl1_sl 0x0000 timestamp unit 12 input sample time (1 st ) in seconds low - word register [15:0] 0x58a ? 0x58b 0x58a 0x58b ts12_smpl1_sh 0x0000 timestamp unit 12 input sample time (1 st ) in seconds high - word register [31:16] 0x58c ? 0x58d 0x58c 0x58d ts12_smpl1_sub_ns 0x0000 timestamp unit 12 input sample time (1 st ) in sub - nanoseconds register [2:0] 0x58e ? 0x593 0x58e 0x593 reserved (6 - bytes) don?t c are none 0x594 ? 0x595 0x594 0x595 ts12_smpl2_nsl 0x0000 timestamp unit 12 input sample time (2nd) in nanoseconds low - word register [15:0] 0x596 ? 0x597 0x596 0x597 ts12_smpl2_nsh 0x0000 timestamp unit 12 input sample time (2nd) in nanoseconds high - word register [29:16] 0x598 ? 0x599 0x598 0x599 ts12_smp2_sl 0x0000 timestamp unit 12 input sample time (2nd) in seconds low - word register [15:0] 0x59a ? 0x59b 0x59a 0x59b ts12_smpl2_sh 0x0000 timestamp unit 12 input sample time (2nd) in seconds high - word register [31:16]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 108 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x59c ? 0x59d 0x59c 0x59d ts12_smpl2_sub_ns 0x0000 timestamp unit 12 input sample time (2nd) in sub - nanoseconds register [2:0] 0x59e ? 0x5a3 0x59e 0x5a3 reserved (6 - bytes) don?t c are none 0x5a4 ? 0x5a5 0x5a4 0x5a5 ts12_smpl3_nsl 0x0000 timestamp unit 12 input sample time (3rd) in nanoseconds low - word register [15:0] 0x5a6 ? 0x5a7 0x5a6 0x5a7 ts12_smpl3_nsh 0x0000 timestamp unit 12 input sample time (3rd) in nanoseconds high - word register [29:16] 0x5a8 ? 0x5a9 0x5a8 0x5a9 ts12_smpl3_sl 0x0000 timestamp unit 12 input sample time (3rd) in seconds low - word register [15:0] 0x5aa ? 0x5ab 0x5aa 0x5ab ts12_smpl3_sh 0x0000 timestamp unit 12 input sam ple time (3rd) in seconds high - w ord register [31:16] 0x5ac ? 0x5ad 0x5ac 0x5ad ts12_smpl3_sub_ns 0x0000 timestamp unit 12 input sample time (3rd) in sub - nanoseconds register [2:0] 0x5ae ? 0x5b3 0x5ae 0x5b3 reserved (6 - bytes) don?t c are none 0x5b4 ? 0x5b5 0x5b4 0x5b5 ts12_smpl4_nsl 0x0000 timestamp unit 12 input sample time (4th) in nanoseconds low - word register [15:0] 0x5b6 ? 0x5b7 0x5b6 0x5b7 ts12_smpl4_nsh 0x0000 timestamp unit 12 input sample time (4th) in nanoseconds high - word register [29:16] 0x5b8 ? 0x5b9 0x5b8 0x5b9 ts12_smpl4_sl 0x0000 timestamp unit 12 input sample time (4th) in seconds low - word register [15:0] 0x5ba ? 0x5bb 0x5ba 0x5bb ts12_smpl4_sh 0x0000 timestamp unit 12 input sample time (4th) in seconds high - word register [31:16] 0x5bc ? 0x5bd 0x5bc 0x5bd ts12_smpl4_sub_ns 0x0000 timestamp unit 12 input sample time (4th) in sub - nanoseconds register [2:0] 0x5be ? 0x5c3 0x5be 0x5c3 reserved (6 - bytes) don?t c are none 0x5c4 ? 0x5c5 0x5c4 0x5c5 ts12_smpl5_nsl 0x0000 timestamp unit 12 input sample time (5th) in nanoseconds low - word register [15:0] 0x5c6 ? 0x5c7 0x5c6 0x5c7 ts12_smpl5_nsh 0x0000 timestamp unit 12 input sample time (5th) in nanoseconds high - word register [29:16] 0x5c8 ? 0x5c9 0x5c8 0x5c9 ts12_smpl5_sl 0x0000 timestamp unit 12 input sample time (5th) in seconds low - word register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 109 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x5ca ? 0x5cb 0x5ca 0x5cb ts12_smpl5_sh 0x0000 timestamp unit 12 input sample time (5th) in seconds high - word register [31:16] 0x5cc ? 0x5cd 0x5cc 0x5cd ts12_smpl5_sub_ns 0x0000 timestamp unit 12 input sample time (5th) in sub - nanoseconds register [2:0] 0x5ce ? 0x5d3 0x5ce 0x5d3 reserved (6 - bytes) don? t c are none 0x5d4 ? 0x5d5 0x5d4 0x5d5 ts12_smpl6_nsl 0x0000 timestamp unit 12 input sample time (6th) in nanoseconds low - word register [15:0] 0x5d6 ? 0x5d7 0x5d6 0x5d7 ts12_smpl6_nsh 0x0000 timestamp unit 12 input sample time (6th) in nanoseconds high - word register [29:16] 0x5d8 ? 0x5d9 0x5d8 0x5d9 ts12_smpl6_sl 0x0000 timestamp unit 12 input sample time (6th) in seconds low - word register [15:0] 0x5da ? 0x5db 0x5da 0x5db ts12_smpl6_sh 0x0000 timestamp unit 12 input sample time (6th) in seconds high - word register [31:16] 0x5dc ? 0x5dd 0x5dc 0x5dd ts12_smpl6_sub_ns 0x0000 timestamp unit 12 input sample time (6th) in sub - nanoseconds register [2:0] 0x5de ? 0x5e3 0x5de 0x5e3 reserved (6 - bytes) don?t care none 0x5e4 ? 0x5e5 0x5e4 0x5e5 ts12_smpl7_nsl 0x0000 timestamp unit 12 input sample time (7th) in nanoseconds low - word register [15:0] 0x5e6 ? 0x5e7 0x5e6 0x5e7 ts12_smpl7_nsh 0x0000 timestamp unit 12 input sample time (7th) in nanoseconds high - word register [29:16] 0x5e8 ? 0x5e9 0x5e8 0x5e9 ts12_smpl7_sl 0x0000 timestamp unit 12 input sample time (7th) in seconds low - word register [15:0] 0x5ea ? 0x5eb 0x5ea 0x5eb ts12_smpl7_sh 0x0000 timestamp unit 12 input sample time (7th) in seconds high - word register [31:16] 0x5ec ? 0x5ed 0x5ec 0x5ed ts12_smpl7_sub_ns 0x0000 timestamp unit 12 input sample time (7th) in sub - nanoseconds register [2:0] 0x5ee ? 0x5f3 0x5ee 0x5f3 reserved (6 - bytes) don?t c are none 0x5f4 ? 0x5f5 0x5f4 0x5f5 ts12_smpl8_nsl 0x0000 timestamp unit 12 input sample time (8th ) in nanoseconds low - word register [15:0] 0x5f6 ? 0x5f7 0x5f6 0x5f7 ts12_smpl8_nsh 0x0000 timestamp unit 12 input sample time (8th) in nanoseconds high - word register [29:16]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 110 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff) (continued) i/o register offset location register name default value description 16- bit 8 - bit 0x5f8 ? 0x5f9 0x5f8 0x5f9 ts12_smpl8_sl 0x0000 timestamp unit 12 input sample time (8th) in seconds low - word register [15:0] 0x5fa ? 0x5fb 0x5fa 0x5fb ts12_smpl8_sh 0x0000 timestamp unit 12 i nput sample time (8th) in second s high - word register [31:16] 0x5fc ? 0x5fd 0x5fc 0x5fd ts12_smpl8_sub_ns 0x0000 timestamp unit 12 input sample time (8th) in sub - nanoseconds register [2:0] 0x5fe ? 0x5ff 0x5fe 0x5ff reserved (2 - bytes) don?t c are none internal i/o register space mapping for ptp 1588 clock and global control (0x600 ? 0x7ff) i/o register offset location register name default value description 16- bit 8 - bit 0x600 ? 0x601 0x600 0x601 ptp_clk_ctl 0x0002 ptp clock control register [6:0] 0x602 ? 0x603 0x602 0x603 reserved (2 - bytes) don?t care none 0x604 ? 0x605 0x604 0x605 ptp_rtc_nsl 0x0000 ptp real time clock in nanosecond s low - word register [15:0] 0x606 ? 0x607 0x606 0x607 ptp_rtc_nsh 0x0000 ptp real time clock in nanosecond s high - word register [31:16] 0x608 ? 0x609 0x608 0x609 ptp_rtc_sl 0x0000 ptp real time clock in second s low - word register [15:0] 0x60a ? 0x60b 0x60a 0x60b ptp_rtc_sh 0x0000 ptp real time clock in second s high - word register [31:16] 0x60c ? 0x60d 0x60c 0x60d ptp_rtc_phase 0x0000 ptp real time clock in phase register [2:0] 0x60e ? 0x60f 0x60e 0x60f reserved (2 - bytes) don?t c are none 0x610 ? 0x611 0x610 0x611 ptp_sns_rate_l 0x0000 ptp sub - nanosecond rate low - word register [15:0] 0x612 ? 0x613 0x612 0x613 ptp_sns_rate_h 0x0000 ptp sub - nanosecond rate high- word [29:16] and configuration register 0x614 ? 0x615 0x614 0x615 ptp_temp_adj_dura_l 0x0000 ptp temporary adjustment mode duration low - word register [15:0] 0x616 ? 0x617 0x616 0x617 ptp_temp_adj_dura_h 0x0000 ptp temporary adjustment mode duration high - word register [31:16]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 111 revision 1.0 internal i/o register space mapping for ptp 1588 clock and global control (0x600 ? 0x7ff) (continued) i/o register offset location register name default value description 16- bit 16- bit 0x618 ? 0x61f 0x618 0x61f reserved (8 - byte s ) don?t c are none 0x620 ? 0x621 0x620 0x621 ptp_msg_cfg_1 0x0059 ptp message configuration 1 register [7:0] 0x622 ? 0x623 0x622 0x623 ptp_msg_cfg_2 0x0404 ptp mes sage configuration 2 register [10 :0] 0x624 ? 0x625 0x624 0x625 ptp_domain_ver 0x02 00 ptp domain and version register [11:0] 0x626 ? 0x63f 0x626 0x63f reserved (26 - byte s ) don?t c are none 0x640 ? 0x641 0x640 0x641 ptp_p1_rx_ latency 0x019f ptp port 1 receive latency register [15:0] 0x642 ? 0x643 0x642 0x643 ptp_p1_tx_ latency 0x002d ptp port 1 transmit latency register [15:0] 0x644 ? 0x645 0x644 0x645 ptp_p1_asym_cor 0x0000 ptp port 1 asymmetry correction register [15:0] 0x646 ? 0x647 0x646 0x647 ptp_p1_link_dly 0x0000 ptp port 1 link delay register [15:0] 0x648 ? 0x649 0x648 0x649 p1_xdly_req_tsl 0x0000 ptp port 1 egress timestamp low - word for pdelay_req and delay_req frames register [15:0] 0x64a ? 0x64b 0x64a 0x64b p1_xdly_req_tsh 0x0000 ptp port 1 egress timestamp high - word for pdelay_req and delay_req frames register [31:16] 0x64c ? 0x64d 0x64c 0x64d p1_sync_tsl 0x0000 ptp port 1 egress timestamp low - word for sync frame register [15:0] 0x64e ? 0x64f 0x64e 0x64f p1_sync_tsh 0x0000 ptp port 1 egress timestamp high - word for sync frame register [31:16] 0x650 ? 0x651 0x650 0x651 p1_pdly_resp_tsl 0x0000 ptp port 1 egress timestamp low - word for pdelay_resp frame register [15:0] 0x652 ? 0x653 0x652 0x653 p1_pdly_resp_tsh 0x0000 ptp port 1 egress timestamp high - word for pdelay_resp frame register [31:16] 0x654 ? 0x65f 0x654 0x65f reserved (12 - byte s ) don?t c are none 0x660 ? 0x661 0x660 0x661 ptp_p2_rx_latency 0x019f ptp port 2 receive latency register [15:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 112 revision 1.0 internal i/o register space mapping for ptp 1588 clock and global control (0x600 ? 0x7ff) (continued) i/o register offset location register name default value description 16- bit 16- bit 0x662 ? 0x663 0x662 0x663 ptp_p2_tx_ latency 0x002d ptp port 2 transmit latency register [15:0] 0x664 ? 0x665 0x664 0x665 ptp_p2_asym_cor 0x0000 ptp port 2 asymmetry correction register [15:0] 0x666 ? 0x667 0x666 0x667 ptp_p2_link_dly 0x0000 ptp port 2 link delay register [15:0] 0x668 ? 0x669 0x668 0x669 p2_xdly_req_tsl 0x0000 ptp port 2 egress timestamp low - word for pdelay_req and delay_req frames register [15:0] 0x66a ? 0x66b 0x66a 0x66b p2_xdly_req_tsh 0x0000 ptp port 2 egress timestamp high - word for pdelay_req and delay_req frames register [31:16] 0x66c ? 0x66d 0x66c 0x66d p2_sync_tsl 0x0000 ptp port 2 egress timestamp low - word for sync frame register [15:0] 0x66e ? 0x66f 0x66e 0x66f p2_sync_tsh 0x0000 ptp port 2 egress timestamp high - word for sync frame register [31:16] 0x670 ? 0x671 0x670 0x671 p2_pdly_resp_tsl 0x0000 ptp port 2 egress timestamp low - word for pdelay_resp frame register [15:0] 0x672 ? 0x673 0x672 0x673 p2_pdly_resp_tsh 0x0000 ptp port 2 egress timestamp high - word for pdelay_resp frame register [31:16] 0x674 ? 0x67f 0x674 0x67f reserved (12 - byte s ) don?t c are none 0x680 ? 0x681 0x680 0x681 gpio_monitor 0x0000 ptp gpio monitor register [11 :0] 0x682 ? 0x683 0x682 0x683 gpio_oen 0x0000 pt p gpio output enable register [11 :0] 0x684 ? 0x687 0x686 0x687 reserved (4 - byte s ) don?t c are none 0x688 ? 0x689 0x688 0x689 ptp_trig_is 0x0000 ptp trigger unit interrupt status register 0x68a ? 0x68b 0x68a 0x68b ptp_trig_ie 0x0000 ptp trigger unit interrupt enable register 0x68c ? 0x68d 0x68c 0x68d ptp_ts_is 0x0000 ptp timestamp unit interrupt status register 0x68e ? 0x68f 0x68e 0x68f ptp_ts_ie 0x0000 ptp timestamp unit interrupt enable register
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 113 revision 1.0 internal i/o register space mapping for ptp 1588 clock and global control (0x600 ? 0x7ff) (continued) i/o register offset location register name default value description 16- bit 16- bit 0x690 ? 0x733 0x690 0x733 reserved (164 -b ytes ) don?t c are none 0x 734 ? 0x735 0x734 0x735 dsp_cntrl_6 0x3020 dsp control 1 register 0x736 ? 0x747 0x 736 0x747 reserved (18 - bytes ) don?t c are none 0x 748 ? 0x749 0x748 0x749 ana_cntrl_1 0x0000 analog control 1 register 0x 74a ? 0x74b 0x 74a 0x74b reserved (2 - bytes ) don?t c are none 0x 74c ? 0x74d 0x 74c 0x74d ana_cntrl_3 0x0000 analog control 3 register 0x 74e ? 0x7ff 0x 74e 0x7ff reserved (178- bytes ) don?t c are none
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 114 revision 1.0 register bit definitions the section provides details of the bit definitions for the registers summarized in the previous section. writing to a bit or register defined as reserved could potentially cause unpredictable results. if it is necessary to write to registers which contain both writable and reserved bits in the same register, the user should first read back the reserved bits (ro or rw), then ?or? the desired settable bits with the value read and wr ite back the ?ored? value back to the register. bit type definition: ? ro = read only. ? wo = write only. ? rw = read/write. ? sc = self - clear. ? w1c = write ?1? to clear (write a ?1? to clear this bit). inter nal i/o register space mapping for switch control and c onfiguration (0x000 ? 0x0ff) chip id and enable register (0x000 ? 0x001): cider this register contains the chip id and switch - enable control. bit default value r/w description 15 ? 8 0x84 ro family id chip family id. 7 ? 4 0x4 or 0x5 ro chip id 0x4 is assigned to ksz8463ml/fml. 0x5 is assigned to ksz8463rl/frl. 3 ? 1 001 ro revision id chip revision id. 0 1 rw start switch 1 = start the chip. 0 = switch is disabled. switch global control register 1 (0x002 ? 0x003): sgcr1 this register contains global control bits for the switch function. bit default r/w description 15 0 rw pass all frames 1 = switch all packets including bad ones. used solely for debugging purposes. works in conjunction with sniffer mode only. 0 = do not pass bad frames. 14 0 rw receive 2000 byte packet length enable 1 = enables the receipt of packets up to and including 2000 bytes in length. 0 = discards the received packets if their length is greater than 2000 bytes.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 115 revision 1.0 switch global control regi ster 1 (0x002 ? 0x003): sgcr1 (continued) bit default r/w description 13 1 rw ieee 802.3x transmit direction flow control enable 1 = enables transmit direction flow control feature. 0 = disable transmit direction flow control feature. the switch will not generate any flow control packets. 12 1 rw ieee 802.3x receive direction flow control enable 1 = enables receive direction flow control feature. 0 = disable receive direction flow control feature. the switch will not react to any received flow control packets. 11 0 rw frame length field check 1 = enable check ing frame length field in the ieee packets. if the actual length does not match, the packet will be dropped (for length/type field < 1500). 0 = disable check ing frame length field in the ieee packets. 10 1 rw aging enable 1 = e nable ag ing function in the chip. 0 = d isable ag ing function in the chip. 9 0 rw fast age enable 1 = t urn on fast age (800 s ). 8 0 rw aggressive back - off enable 1 = e nable more aggressive back - off algorithm in half - duplex mode to enhance performance. this is not an ieee standard. 7 ? 6 01 rw reserved 5 0 rw enable flow control when exceeding ingress l imit 1 = flow control frame will be sent to l ink partner when exceeding the ingress rate limit. 0 = frame will be dropped when exceeding the ingress rate limit . 4 1 rw receive 2k byte packets enable 1 = enable packet length up to 2k bytes. while set, sgcr2 bits[2,1] will have no effect. 0 = discard packet if packet length is greater than 2000 bytes. 3 0 rw pass flow control packet 1 = s witch will not filter 802.1x ?flow control? packets. 2 ? 1 00 rw reserved 0 0 rw link change age 1 = l ink change from ?link? to ?no link? will cause fast aging (<800 us) to age address table faster. after an age cycle is complete, the age logic will return to normal (300 + 75 seconds). this affects port s not linked and not active linked port s. note : if any port is unplugged, all addresses will be automatically aged out.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 116 revision 1.0 switch global control register 2 (0x004 ? 0x005): sgcr2 this register contains global control bits for the switch function. bit default r/w description 15 0 rw 802.1q vlan enable 1 = 802.1q vlan mode is tu rned on. vlan table must be set - up before the operation. 0 = 802.1q vlan is disabled. 14 0 rw igmp snoop enable 1 = igmp snoop is enabled. 0 = igmp snoop is disabled. 13 0 rw ipv6 mld snooping enable 1 = enable ipv6 mld snooping. 12 0 rw ipv6 mld snooping option select 1 = enable ipv6 mld snooping option. 1 1 ? 9 0 0 0 rw reserved 8 0 rw sniff mode select 1 = performs rx and tx sniff (both the source port and destination port need to match). 0 = performs rx or tx sniff (either the source port or destination port needs to match). this is the mode used to implement rx only sniff. 7 1 rw unicast port - vlan mismatch discard 1 = no packets can cross the vlan boundary. 0 = unicast packets (excluding unknown/multicast/broadcast) can cross the vlan boundary. 6 1 rw multicast storm protection disable 1 = ?broadcast storm protection? does not include multic ast packets. only da = ff - ff - ff -ff - ff - ff packets are regulated. 0 = ?broadcast storm protection? includes da = ff - ff - ff -ff - ff - ff and da[40] = ?1? packets. 5 1 rw back pressure mode 1 = carrier sense - based b ack p ressure is selected. 0 = collision - based b ack p ressure is selected. 4 1 rw f low control a nd back pressure fair mode 1 = fair mode is selected. in this mode, if a flow control port and a non - flow control port talk to the same destination port , packets from t he non - flow control port may be dropped. this prevents the flow control port from being flow controlled for an extended period of time. 0 = in this mode, if a flow control port and a non - flow control port talk to the same destination port , the flow control port is flow contro lled. this may not be ?fair? to the flow control port . 3 0 rw no excessive collision drop 1 = the switch does not drop packets when 16 or more collisions occur. 0 = the switch drops packets when 16 or more collisions occur.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 117 revision 1.0 switch global control register 2 (0x004 ? 0x005): sgcr2 (continued) bit default r/w description 2 0 rw huge packet sup port 1 = accepts packet sizes up to 1916 bytes (inclusive). this bit se tting overrides setting from bit [1] of the same register. 0 = the max packet size is determined by bit [1] of this register. 1 0 rw legal maximum packet size check enable 1 = 1522 bytes for tagged packets, 1518 bytes for untagged packets. any packets larger than the sp ecified value are dropped. 0 = accepts packet sizes up to 1536 bytes (inclusive). 0 0 rw priority buffer reserve 1 = each port is pre - allocated 48 buffers, used exclusively for high priority (q3, q2, and q1 ) packets. effective only when the multiple queue feature is turned on. 0 = each port is pre - allocated 48 buffers used for all priority packets (q3, q2, q1, and q0). switch global control register 3 (0x006 ? 0x007): sgcr3 this register contains global control bits for the switch function. bit default r/w description 15 ? 8 0x63 rw broad cast storm protection rate bits [7:0] these bits, along with sgcr3[2:0], determine how many 64 - byte blocks of packet data are allowed on an input port in a preset period. the p eriod is 67ms for 100bt or 670 ms for 10bt. the default is 1%. 7 0 ro reserved 6 0 rw switch host port in half - duplex mode 1 = enable host port interface half - duplex mode. 0 = enable host port interface full - duplex mode. 5 1 rw switch host port flow control enable 1 = enable full - duplex flow control on switch host port . 0 = disable full - duplex flow control on switch host port 4 0 rw switch mii 10bt 1 = the switch is in 10 mbps mode. 0 = the switch is in 10 0 mbps mode. 3 0 rw null vid replacement 1 = replaces null vid with port vid (12 bits). 0 = no replacement for null vid. 2 ? 0 0 0 0 rw broad cast storm protection rate bits [10:8] these bits, along with sgcr3[ 15:8] determine how many 64 - byte blocks of packet data are allowed on an input port in a preset period. the period is 67ms for 100bt or 670 ms for 10bt. the default is 1%. broadcast storm protectio n rate: 148,800 frames/sec * 67 ms/interval * 1% = 99 frames/ interval (approx. 0x63) 0x008 ? 0x00 b : reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 118 revision 1.0 switch global control register 6 (0x00c ? 0x00d): sgcr6 this register contains global control bits for the switch function. bit default r/w description 15 ? 14 11 r/w tag_0x7 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x7. 13 ? 12 11 r/w tag_0x6 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x6. 11 ? 10 10 r/w tag_0x5 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x5. 9 ? 8 10 r/w tag_0x4 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag h as a value of 0x4. 7 ? 6 01 r/w tag_0x3 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x3. 5 ? 4 01 r/w tag_0x2 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x2. 3 ? 2 00 r/w tag_0x1 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x1. 1 ? 0 00 r/w tag_0x0 ieee 802.1p mapping. the value in this field is used as the frame?s priority when its vlan tag has a value of 0x0.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 119 revision 1.0 switch global control register 7 (0x00e ? 0x00f): sgcr7 this register contains global control bits for the switch functio n. bit default r/w description 15 ? 1 0 0x0 2 r/w reserved 9 ? 8 00 r/w port led mode when read, these two bits provide the current setting of the led display mode for p1/2led1 and p1/2led0 as defined as below. reg. 0x06c ? 0x06d, bits [14:12] determine if this automatic functionality is utilized or if the port 1 leds are controlled by the local processor. reg. 0x084 ? 0x085, bits [14:12] determine if this automatic functionality is utilized or if the port 2 leds are controlled by the local processor. led mode p1/2led1 p1/2led0 00 speed link and activity 01 activity link 10 full duplex link and activity 11 full duplex link 7 0 r/w unknown default port enable send packets with unknown destination address to specified port s in bits [2:0]. 1 = enable to send unknown da packet 6 ? 5 0 1 or 10 r/w driver strength selection these two bits determine the drive strength of all i/o pins except for the following category of pins: led pins, gpio pins, intrn, rstn, and rxd3/refclk_0. 00 = 4ma. 01 = 8ma. (default when vdd_io is 3.3v or 2.5v) 10 = 12ma. (default when vdd_io is 1.8v) 11 = 16ma. 4 ? 3 00 r/w reserved 2 ? 0 111 r/w unknown packet default port (s) specifies which port s to send packets with unknown destination addresses. feature is enabled by bit [7]. bit [2] = for port 3 ( mii / rmii port ) bit [1] = for port 2 bit [0] = for port 1
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 120 revision 1.0 mac address registers mac address register 1 (0x010 ? 0x011): macar1 this register contains the two msbs of the mac address for the switch function. this mac a ddress is used for sending pause frames. bit default r/w description 15 ? 0 0x0010 rw maca[47:32] specifies mac a ddress 1 for sending pause frame. mac address register 2 (0x012 ? 0x013): macar2 this register contains the mac a ddress for the switch function. this mac a ddress is used for sending pause frames. bit default r/w description 15 ? 0 0xa1ff rw maca[31:16] specifies mac address 2 for sending pause frame. mac address register 3 (0x014 ? 0x015): macar3 this register contains the two lsbs of the mac address for the switch function. this mac a ddress is used for sending pause frames. bit default r/w description 15 ? 0 0xffff rw maca[15:0] specifies mac address 3 for sending pause frame.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 121 revision 1.0 tos priority control registers tos priority control register 1 (0x016 ? 0x017): tosr1 the ipv4/ipv6 type - of - service (tos) priority control registers are used to define a 2 - bit priority to each of the 64 possible values in the 6 - bit differentiated services code point (dscp) field in the ip header of ingress frames. this register contains the to s priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[15:14] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x1c. 13 ? 12 0 0 r/w dscp[13:12] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x18. 11 ? 10 0 0 r/w dscp[11:10] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x14. 9 ? 8 0 0 r/w dscp[9:8] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x10. 7 ? 6 0 0 r/w dscp[7:6] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x0c. 5 ? 4 0 0 r/w dscp[5:4] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x08. 3 ? 2 0 0 r/w dscp[3:2] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x04. 1 ? 0 0 0 r/w dscp[1:0] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic clas s value are 0x00.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 122 revision 1.0 tos priority control register 2 (0x018 ? 0x019): tosr2 this register conta ins the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[31:30] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x3c. 13 ? 12 0 0 r/w dscp[29:28] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x38. 11 ? 10 0 0 r/w dscp[27:26] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x34. 9 ? 8 0 0 r/w dscp[25:24] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffser v/traffic class value are 0x30. 7 ? 6 0 0 r/w dscp[23:22] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x2c. 5 ? 4 0 0 r/w dscp[21:20] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x28. 3 ? 2 0 0 r/w dscp[19:18] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic cla ss value are 0x24. 1 ? 0 0 0 r/w dscp[17:16] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x20.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 123 revision 1.0 tos priority control register 3 (0x01a ? 0x01b): tosr3 this register contains the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp [47:46] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x5c. 13 ? 12 0 0 r/w dscp[45:44] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x58. 11 ? 10 0 0 r/w dscp[43:42] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x54. 9 ? 8 0 0 r/w dscp[41:40] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic cl ass value are 0x50. 7 ? 6 0 0 r/w dscp[39:38] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x4c. 5 ? 4 0 0 r/w dscp[37:36] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x48. 3 ? 2 0 0 r/w dscp[35:34] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic cl ass value are 0x44. 1 ? 0 0 0 r/w dscp[33:32] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x40. tos priority control register 4 (0x01c ? 0x1d): tosr4 this register conta ins the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[63:62] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x7c. 13 ? 12 0 0 r/w dscp[61:60] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x78. 11 ? 10 0 0 r/w dscp[59:58] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffs erv/traffic class value are 0x74. 9 ? 8 0 0 r/w dscp[57:56] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x70.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 124 revision 1.0 tos priority control register 4 (0x01c ? 0x1d): tosr4 (continued) bit default r/w description 7 ? 6 0 0 r/w dscp[55:54] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x6c. 5 ? 4 0 0 r/w dscp[53:52] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x68. 3 ? 2 0 0 r/w dscp[51:50] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic cl ass value are 0x64. 1 ? 0 0 0 r/w dscp[49:48] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x60. tos priority control register 5 (0x01e ? 0x1f): tosr5 this register conta ins the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[79:78] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x9c. 13 ? 12 0 0 r/w dscp[77:76] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x98. 11 ? 10 0 0 r/w dscp[75:74] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x94. 9 ? 8 0 0 r/w dscp[73:72] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic cl ass value are 0x90. 7 ? 6 0 0 r/w dscp[71:70] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x8c. 5 ? 4 0 0 r/w dscp[69:68] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x88. 3 ? 2 0 0 r/w dscp[67:66] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic cla ss value are 0x84. 1 ? 0 0 0 r/w dscp[65:64] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0x80.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 125 revision 1.0 tos priority control register 6 (0x020 ? 0x021): tosr6 this register conta ins the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[95:94] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xbc. 13 ? 12 0 0 r/w dscp[93:92] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xb8. 11 ? 10 0 0 r/w dscp[91:90] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffs erv/traffic class value are 0xb4. 9 ? 8 0 0 r/w dscp[89:88] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xb0. 7 ? 6 0 0 r/w dscp[87:86] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xac. 5 ? 4 0 0 r/w dscp[85:84] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xa8. 3 ? 2 0 0 r/w dscp[83:82] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xa4. 1 ? 0 0 0 r/w dscp[81:80] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffser v/traffic class value are 0xa0. tos priority control register 7 (0x022 ? 0x023): tosr7 this register contains the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[111:110] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xdc. 13 ? 12 0 0 r/w dscp[109:108] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xd8. 11 ? 10 0 0 r/w dscp[107:106] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xd4. 9 ? 8 0 0 r/w dscp[105:104] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xd0.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 126 revision 1.0 tos priority control register 7 (0x022 ? 0x023): tosr7 (continued) bit default r/w description 7 ? 6 0 0 r/w dscp[103:102] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xcc. 5 ? 4 0 0 r/w dscp[101:100] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xc8. 3 ? 2 0 0 r/w dscp[99:98] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xc4. 1 ? 0 0 0 r/w dscp[97:96] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xc0. tos priority control register 8 (0x024 ? 0x025): tosr8 this register conta ins the tos priority control bits for the switch function. bit default r/w description 15 ? 14 0 0 rw dscp[127:126] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xfc 13 ? 12 0 0 r/w dscp[125:124] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xf8. 11 ? 10 0 0 r/w dscp[123:122] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xf4. 9 ? 8 0 0 r/w dscp[121:120] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xf0. 7 ? 6 0 0 r/w dscp[119:118] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xec. 5 ? 4 0 0 r/w dscp[117:116] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xe8. 3 ? 2 0 0 r/w dscp[115:114] the value in this field is used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xe4. 1 ? 0 0 0 r/w dscp[113:112] the value in this field i s used as the frame?s priority when bits [7:2] of the ip tos/diffserv/traffic class value are 0xe0.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 127 revision 1.0 indirect access data registers indirect access data register 1 (0x026 ? 0x027): iadr1 this register is used to indirectly read or write the data in the management information base (mib) counters , static mac address table , dynamic mac address table , or the vlan table . review those sections for detail bit information. bit default r/w description 15 ? 8 0x00 ro reserved 7 0 ro cpu read status only for dynamic and statistics counter reads. 1 = read is still in progress. 0 = read has completed. 6 ? 3 0x0 ro reserved 2 ? 0 0 0 0 ro indirect data [66:64] bit [66:64] of indirect data. indirect access data register 2 (0x028 ? 0x029): iadr2 this register is used to indirectly read or write the data in the management information base (mib) counters , static mac address table , dynamic mac address table , or the vlan table . review those sections for detail bit information. bit default r/w description 15 ? 0 0x0000 rw indirect data [47:32] bit [47:32] of indirect data. indirect access data register 3 (0x02a ? 0x02b): iadr3 this register is used to indirectly read or write the data in the management information base (mib) counters , static mac address table , dynamic mac address table , or the vlan table . review those sections for detail bit information. bit default r/w description 15 ? 0 0x0000 rw indirect data [63:48] bit [ 63 :48] of indirect data. indirect access data register 4 (0x02c ? 0x02d): iadr4 this register is used to indirectly read or write the data in the management information base (mib) counters , static mac address table , dynamic mac address table , or the vlan table . review those sections for detail bit information. bit default r/w description 15 ? 0 0x0000 rw indirect data [15:0] bit [15:0] of indirect data.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 128 revision 1.0 indirect access data register 5 (0x02e ? 0x02f): iadr5 this register is used to indirectly read or write the data in the management information base (mib) counters , static mac address table , dynamic mac address table , or the vlan table . review those sections for detail bit information. bit default r/w description 15 ? 0 0x0000 rw indirect data [31:16] bit [31:16] of indirect data. indirect access control register (0x030 ? 0x031): iacr this register is used to indirectly read or write the data in the management information base (mib) counters , static mac address table , dynamic mac address table , or the vlan table . review those sections for detail bit information. writing to iacr triggers a command. read or write access is determined by register bit 12. bit default r/w description 15-13 0 0 0 rw reserved 12 0 rw read or write access selection 1 = read cycle. 0 = write cycle. 11-10 00 rw table select 00 = static mac address table selected. 01 = vlan table selected. 10 = dynamic mac address table selected. 11 = mib counter selected. 9 -0 0x000 rw indirect address [9:0] bit [9:0] of indirect address.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 129 revision 1.0 power management control and wake - up event status pow er management control and wake - u p event status (0x032 ? 0x033): pmctrl this register controls the powe r management mode and provides w ake - u p event status. bit default r/w description 15 ? 4 0x000 ro reserved . 3 0 rw (w1c) link - up detect status 1 = a link up condition has been detected at either port 1 or port 2 (w rite a ? 1 ?to clear ). 0 = no l ink up has been detected . 2 0 rw (w1c) energy detect status 1 = energy is detected at either port 1 or port 2 (w rite a ? 1 ? to clear ). 0 = no energy is detected . 1 ? 0 0 0 rw power management mode these two bits are used to control device power management mode. 00 = normal mode. 01 = energy detect mode. 10 = global soft power - down mode. 11 = reserved . (0x034 ? 0x035): reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 130 revision 1.0 go sleep time and clock tree power- down control registers go sleep time register (0x036 ? 0x037): gst this register contains the value which is used to control the minimum go - sleep time period when the device transitions from normal power state to low power state in energy detect mode. bit default r/w description 15 ? 8 0x00 ro reserved 7 ? 0 0x8e rw go sleep time this value is used to control the minimum period the no energy event has to be detected consecutively before the device enters th e low power state during energy - detect mode. the unit is 20 ms . the default go sle ep time is around 3.0 seconds. clock tree power - down control register (0x038 ? 0x039): ctpdc t his register contains the power - down control bits for all clocks. bit default r/w description 15 ? 5 0x00 0 ro reserved 4 0 rw pll auto power - down enable 1 = w hen all the following condition are met , the device will automatically shut down the pll. any line or host activity will wake up the pll. 1) n o energy is detected at both port 1 and port 2 in energy - detect mode . 2) port 3 is at phy - mii m ode and tx _ er is set at high . 0 = pll clock is always on. 3 0 rw switch clock auto shut down enable 1 = when no packet transfer is detected on the mii interface of all port s ( port 1 , port 2, and port 3 ) longer than the time specified in bit[1:0] of current register, the device will shut down the switch clock automatically. the switch clock will be w oken up automatically when the mii inte rface of any port becomes busy. 0 = s witch clock is always on. 2 0 rw cpu clock auto shutd own enable 1 = when no packet transfer is detected both on host interface and on mii interface of all port s ( port 1, port 2, and port 3 ) longer than the time specified in bit[1:0] of current register, the device will shut down cpu clock automatically. the cpu clock will be waked up automatically when host activity is detected or mii inte rface of any port becomes busy. 0 = cpu clock is always on. 1 ? 0 00 rw shutdown wait period these two bits specify the time for device to monitor host/mii activity continuously before it could shut down switch or cpu clock. 00 = 5.3s . 01 = 1.6s . 10 = 1 ms . 11 = 3.2 s . 0x03a ? 0x04b: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 131 revision 1.0 phy and mii basic control registers phy 1 and mii basic control register (0x04c ? 0x04d): p1mbcr this register contains media independent interface (mii) control bits for the switch port 1 function as defined in the ieee 802.3 specification. bit default r/w description bit is same a s: 15 0 ro reserved 14 0 rw far - end loopback 1 = perform loopback as follows: start: rxp2/rxm2 ( port 2) loop back: pmd/pma of port 1?s phy end: txp2/txm2 ( port 2) 0 = normal operation. bit [8] in p1cr4 13 1 rw force 100bt 1 = force 100 mbps if auto - negotiation is disabled (bit [12]) 0 = force 10 mbps if auto - negotiation is disabled (bit [12]) bit [6] in p1cr4 12 1 rw auto - negotiation enable 1 = auto - negotiation enabled. 0 = auto - negotiation disabled. bit [7] in p1cr4 11 0 rw power - down 1 = power - down. 0 = normal operation. bit[ 11] in p1cr4 10 0 ro isolate not sup port ed. 9 0 rw /sc restart auto - negotiation 1 = restart auto - negotiation . 0 = normal operation. bit [13] in p1cr4 8 1 rw force full duplex 1 = force full duplex. 0 = force half duplex. applies only when auto - negotiation is disabled (bit [12]). it is always in half duplex if auto - negotiation is enabled but failed. bit [5] in p1cr4 7 0 ro collision test not sup port ed. 6 0 ro reserved . 5 1 r/w hp_mdix 1 = hp auto - mdi - x mode. 0 = micrel auto - mdi - x mode. bit [15] in p1sr
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 132 revision 1.0 phy 1 and mii basic control register (0x04c ? 0x04d): p1mbcr (continued) bit default r/w description bit is same a s: 4 0 rw force mdi -x 1 = f orce mdi -x. 0 = normal operation. bit [9] in p1cr4 3 0 rw disable auto - mdi -x 1 = disable auto - mdi - x. 0 = normal operation. bit [10] in p1cr4 2 0 rw disable far - end - fault 1 = d isable far - end- fault detection. 0 = n ormal operation. for 100base - fx fiber mode operation. bit [12] in p1cr4 1 0 rw disable transmit 1 = disable transmit. 0 = normal operation. bit [14] in p1cr4 0 0 rw reserved phy 1 and mii basic status register (0x04e ? 0x04f): p1mbsr this register contains the media independent interface (mii) status bits for the switch port 1 function. bit default r/w description bit is same as : 15 0 ro t4 capable 1 = 100base - t4 capable. 0 = not 100base - t4 capable. 14 1 ro 100bt full capable 1 = 100base - tx full - duplex capable. 0 = not 100base - tx full duplex capable. 13 1 ro 100bt half capable 1 = 100base - tx half - duplex capable. 0 = not 100base - tx half - duplex capable. 12 1 ro 10bt full capable 1 = 10base - t full - duplex capable. 0 = not 10base - t full - duplex capable. 11 1 ro 10bt half capable 1 = 10base - t half - duplex capable. 0 = not 10base - t half - duplex capable. 10 ? 7 0x0 ro reserved 6 0 ro preamble suppressed not sup port ed.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 133 revision 1.0 phy 1 and mii basic status register (0x04e ? 0x04f): p1mbsr (continued) bit default r/w description bit is same as: 5 0 ro auto - negotiation complete 1 = auto - negotiation complete. 0 = auto - negotiation not completed. bit [6] in p1sr 4 0 ro far - end - fault 1 = f ar - end- fault detected. 0 = n o far -end- fault detected. for 100base - fx fiber mode operation. bit [8] in p1sr 3 1 ro auto - negotiation capable 1 = auto - negotiation capable. 0 = not auto - negotiation capable. 2 0 ro link status 1 = link is up. 0 = link is down. bit [5] in p1sr 1 0 ro jabber test not sup port ed. 0 0 ro extended capable 1 = extended register capable. 0 = not extended register capable. phy 1 phyid low register (0x050 ? 0x051): phy1ilr this register contains the phy id (low) for the switch port 1 function. bit default r/w description 15 ? 0 0x1430 ro phy 1 id low word low order phy 1 id bits. phy 1 phyid high register (0x052 ? 0x053): phy1ihr this register contains the phy id (high) for the switch port 1 function. bit default r/w description 15 ? 0 0x0022 ro phy 1 id high word high - order phy 1 id bits.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 134 revision 1.0 phy 1 auto - negotiation advertisement register (0x054 ? 0x055): p1anar this register contains the auto - negotiation advertisement bits for the switch port 1 function. bit default r/w description bit is same as : 15 0 ro next page not sup port ed. 14 0 ro reserved 13 0 ro remote fault not sup port ed. 12 ? 11 00 ro reserved 10 1 rw pause (flow control capability) 1 = advertise pause ability. 0 = do not advertise pause capability. bit [4] in p1cr4 9 0 rw reserved 8 1 rw advertise 100bt full - duplex 1 = advertise 100bt full - duplex capable. 0 = do not advertise 100bt full - duplex capability. bit [3] in p1cr4 7 1 rw advertise 100bt half - duplex 1= advertise 100bt half - duplex capable. 0 = do not advertise 100bt half - duplex capability. bit [2] in p1cr4 6 1 rw advertise 10bt full - duplex 1 = advertise 10bt full - duplex capable. 0 = do not advertise 10bt full - duplex capability. bit [1] in p1cr4 5 1 rw advertise 10bt half - duplex 1 = advertise 10bt half - duplex capable. 0 = do not advertise 10bt half - duplex capability. bit [0] in p1cr4 4 ? 0 0x01 ro selector field 802.3
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 135 revision 1.0 phy 1 auto - negotiation link partner ability register (0x056 ? 0x057): p1anlpr this register contains the auto - negotiation link partner ability bits for the switch port 1 function. bit default r/w description bit is same as : 15 0 ro next page not sup port ed. 14 0 ro lp ack not sup port ed. 13 0 ro remote fault not sup port ed. 12 ? 11 00 ro reserved 10 0 ro pause link partner pause capability. bit [4] in p1sr 9 0 ro reserved 8 0 ro advertise 100bt full - duplex link partner 100bt full - duplex capability. bit [3] in p1sr 7 0 ro advertise 100bt half - duplex link partner 100 half - duplex capability. bit [2] in p1sr 6 0 ro advertise 10bt full - duplex link partner 10bt full - duplex capability. bit [1] in p1sr 5 0 ro advertise 10bt half - duplex link partner 10bt half - duplex capability. bit [0] in p1sr 4 ? 0 0x01 ro reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 136 revision 1.0 phy 2 and mii basic control register (0x058 ? 0x059): p2mbcr this register contains media independent interface (mii) control bits for the switch port 2 function as defined in the ieee 802.3 specification. bit default r/w description bit is same as : 15 0 ro reserved 14 0 rw far - end loopback 1 = perform loop back, as follows: start: rxp1/rxm1 ( port 1) loop back: pmd/pma of port 2?s phy end: txp1/txm1 ( port 1) 0 = normal operation. bit [8] in p2cr4 13 1 rw force 100bt 1 = force 100 mbps if auto - negotiation is disabled (bit [12]) 0 = f orce 10 mbps if auto - negotiation is disabled (bit [ 12 ] ) bit [6] in p2cr4 12 1 rw auto - negotiation enable 1 = auto - negotiation enabled. 0 = auto - negotiation disabled. bit [7] in p2cr4 11 0 rw power down 1 = power down. 0 = normal operation. bit [11] in p2cr4 10 0 ro isolate not supported . 9 0 rw /sc restart auto - negotiation 1 = restart auto - negotiation . 0 = normal operation, bit [13] in p2cr4 8 1 rw force full duplex 1 = force full duplex. 0 = force half duplex. applies only when auto - negotiation is disabled (bit [12]). it is always in half duplex if auto - negotiation is enabled but failed. bit [5] in p2cr4 7 0 ro collision test not supported . 6 0 ro reserved 5 1 r/w hp_mdix 1 = hp auto - mdi - x mode. 0 = micrel auto - mdi - x mode. bit [15] in p2sr 4 0 rw force mdi -x 1 = force mdi -x. 0 = normal operation. bit [9] in p2cr4
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 137 revision 1.0 phy 2 and mii basic control register (0x058 ? 0x059): p2mbcr (continued) bit default r/w description bit is same as: 3 0 rw disable auto - mdi -x 1 = disable auto - mdi - x. 0 = normal operation. bit [10] in p2cr4 2 0 rw disable far - end - fault 1 = d isable far - end- fault detection. 0 = n ormal operation. for 100base - fx fiber mode operation. bit [12] in p2cr4 1 0 rw disable transmit 1 = disable transmit. 0 = normal operation. bit [14] in p2cr4 0 0 rw reserved phy 2 and mii basic status register (0x05a ? 0x05b): p2mbsr this register contains the media independent interface (mii) status bits for the switch port 2 function . bit default r/w description bit is same as: 15 0 ro t4 capable 1 = 100base - t4 capable. 0 = not 100base - t4 capable. 14 1 ro 100bt full capable 1 = 100base - tx full - duplex capable. 0 = not 100base - tx full - duplex capable. 13 1 ro 100bt half capable 1 = 100base - tx half - duplex capable. 0 = not 100base - tx half - duplex capable. 12 1 ro 10bt full capable 1 = 10base - t full - duplex capable. 0 = not 10base - t full - duplex capable. 11 1 ro 10bt half capable 1 = 10base - t half - duplex capable. 0 = not 10base - t half - duplex capable. 10 ? 7 0x0 ro reserved 6 0 ro preamble suppressed not sup port ed. 5 0 ro auto - negotiation complete 1 = auto - negotiation complete. 0 = auto - negotiation not completed. bit [6] in p2sr
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 138 revision 1.0 phy 2 and mii basic status register (0x05a ? 0x05b): p2mbsr (continued) bit default r/w description bit is same as: 4 0 ro far - end - fault 1 = f ar - end- fault detected. 0 = n o far -end- fault detected. for 100base - fx fiber mode operation. bit [8] in p2sr 3 1 ro auto - negotiation capable 1 = auto - negotiation capable. 0 = not auto - negotiation capable. 2 0 ro link status 1 = link is up. 0 = link is down. bit [5] in p2sr 1 0 ro jabber test not sup port ed. 0 0 ro extended capable 1 = extended register capable. 0 = not extended register capable. phy 2 phyid low register (0x05c ? 0x05d): phy2ilr this register contains the phy id (low) for the switch port 2 function. bit default r/w description 15 ? 0 0x1430 ro phy 2 id low word low order phy 2 id bits. phy 2 phyid high register (0x05e ? 0x05f): phy2ihr this register contains the phy id (high) for the switch port 2 function. bit default r/w description 15 ? 0 0x0022 ro phy 2 id high word high order phy 2 id bits.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 139 revision 1.0 phy 2 auto - negotiation advertisement register (0x060 ? 0x061): p2anar this register contains the auto - negotiation advertisement bits for the switch port 2 function. bit default r/w description bit is same as : 15 0 ro next page not sup port ed. 14 0 ro reserved 13 0 ro remote fault not sup port ed. 12 ? 11 00 ro reserved 10 1 rw pause ( flow control capability ) 1 = advertise pause ability. 0 = do not advertise pause capability. bit [4] in p2cr4 9 0 rw reserved 8 1 rw advertise 100bt full - duplex 1 = advertise 100bt full - duplex capable. 0 = do not advertise 100bt full - duplex capability. bit [3] in p2cr4 7 1 rw advertise 100bt half - duplex 1 = advertise 100bt half - duplex capable. 0 = do not advertise 100bt half - duplex capability. bit [2] in p2cr4 6 1 rw advertise 10bt full - duplex 1 = advertise 10bt full - duplex capable. 0 = do not advertise 10bt full - duplex capability. bit [1] in p2cr4 5 1 rw advertise 10bt half - duplex 1 = advertise 10bt half - duplex capable. 0 = do not advertise 10bt half - duplex capability. bit [0] in p2cr4 4 ? 0 0x01 ro selector field 802.3
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 140 revision 1.0 phy 2 auto - negotiation link partner ability register (0x062 ? 0x063): p2anlpr this register contains the auto - negotiation link partner ability bits for the switch port 2 function. bit default r/w description bit is same as : 15 0 ro next page not sup port ed. 14 0 ro lp ack not sup port ed. 13 0 ro remote fault not sup port ed. 12 ? 11 00 ro reserved 10 0 ro pause link partner pause capability. bit [4] in p2sr 9 0 ro reserved 8 0 ro advertise 100bt full - duplex link partner 100bt full - duplex capability. bit [3] in p2sr 7 0 ro advertise 100bt half - duplex link partner 100 half - duplex capability. bit [2] in p2sr 6 0 ro advertise 10bt full - duplex link partner 10bt full - duplex capability. bit [1] in p2sr 5 0 ro advertise 10bt half - duplex link partner 10bt half - duplex capability. bit [0] in p2sr 4 ? 0 0x01 ro reserved 0x064 ? 0x065 : reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 141 revision 1.0 phy1 special control and status register (0x066 ? 0x067): p1phyctrl this register contains control and status information of phy 1. bit default r/w description bit is same as: 15 ? 6 0x000 ro reserved 5 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. bit [13] in p1sr 4 0 ro mdi - x status 0 = mdi 1 = mdi - x bit [7] in p1sr 3 0 rw force link 1 = force link pass. 0 = normal operation. bit [ 11] in p1scslmd 2 1 rw enable energy efficient ethernet (eee) on 10bte 1 = disable 10bte. 0 = enable 10bte. 1 0 rw remote (near - end) loopback 1 = perform remote loopback at port 1's phy (rxp1/rxm1 - > txp1/txm1) 0 = normal operation bit [9] in p1scslmd 0 0 rw reserved 0x068 ? 0x069 : reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 142 revision 1.0 phy 2 special control and status register (0x06a ? 0x06b): p2phyctrl this register contains control and status information of phy 2. bit default r/w description bit is same as : 15 ? 6 0x000 ro reserved 5 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. bit [13] in p2sr 4 0 ro mdi - x status 0 = mdi 1 = mdi - x bit [7] in p2sr 3 0 rw force link 1 = force link pass. 0 = normal operation. bit [11] in p2scslmd 2 1 rw enable energy efficient ethernet (eee) on 10bte 1 = disable 10bte. 0 = enable 10bte. 1 0 rw remote (near - end) loopback 1 = perform remote loopback at port 2's phy (rxp2/rxm2 - > txp2/txm2) 0 = normal operation bit [9] in p2scslmd 0 0 rw reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 143 revision 1.0 port 1 control registers port 1 control register 1 (0x06c ? 0x06d): p1cr1 this register contains control bits for the switch port 1 function. bit default r/w description 15 0 ro reserved 14 - 12 0 0 0 r/w port 1 led direct control these bits directly control the port 1 led pins. 0xx = normal led function as set up via reg. 0x00e ? 0x00f, bits [9:8]. 100 = both port 1 leds off. 101 = port 1 led1 off, led0 on. 110 = port 1 led1 on, led0 off. 111 = both port 1 leds on. 11 0 rw source address filtering enable for mac address 2 1 = enable the source address filtering function when the sa matches mac address 2 in safmaca2 (0x0b6 ? 0x0bb). 0 = disable source address filtering function. 10 0 rw source address filtering enable for mac address 1 1 = enable the source address filtering function when the sa matches mac address 1 in safmaca1 (0x0b0 ? 0x0b5). 0 = disable source address filtering function. 9 0 rw drop tagged packet enable 1 = enable to drop tagged ingress packets. 0 = disable to drop tagged ingress packets. 8 0 rw tx two queues select enable 1 = the port 1 output queue is split into two priority queues (q0 and q1). 0 = single output queue on port 1. there is no priority diff erentiation even though packets are classified into high or low priority. 7 0 rw broadcast storm protection enable 1 = enable broadcast storm protection for ingress packets on port 1. 0 = disable broadcast storm protection. 6 0 rw diffserv priority classification enable 1 = enable diffserv priority classification for ingress packets on port 1. 0 = disable diffserv function. 5 0 rw 802.1p priority classification enable 1 = enable 802.1p priority classification for ingress packets on port 1. 0 = disable 802.1p.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 144 revision 1.0 port 1 control register 1 (0x06c ? 0x06d): p1cr1 (continued) bit default r/w description 4 ? 3 00 rw port - based priority classification 00 = ingress packets on port 1 are classified as priority 0 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 01 = ingress packets on port 1 are classified as priority 1 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 10 = ingress packets on port 1 are classified as priority 2 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 11 = ingress packets on port 1 are classified as priority 3 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. note: ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. 2 0 rw tag insertion 1 = when packets are output on port 1, the switch adds 8 02.1p/q tags to packets without 802.1p/q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress port ?s ? port vid?. 0 = disable tag insertion. 1 0 rw tag removal 1 = when packets are output on port 1, the switch rem oves 802.1p/q tags from packets with 802.1p/q tags when received. the switch will not modify packets received without tags. 0 = disable tag removal. 0 0 rw tx multiple queues select enable 1 = the port 1 output queue is s plit into four priority queues (q0, q1, q2 and q3). 0 = single output queue on the port 1. there is no priority diff erentiation even though packets are classified into high or low priority.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 145 revision 1.0 port 1 control register 2 (0x06e ? 0x06f): p1cr2 this register contains control bits for the switch port 1 function. bit default r/w description 15 0 rw reserved 14 0 rw ingress vlan filtering 1 = the switch discards packets whose vid port membership in vlan table bits [18:16] does not include the ingress port vid. 0 = no ingress vlan filtering. 13 0 rw discard non pvid packets 1 = the switch discards packets whose vid does not match the ingress port default vid. 0 = no packets are discarded. 12 0 rw force flow control 1 = always enable flow control on th e port , regardless of auto - negotiation result. 0 = the flow control is enabled based on auto - negotiation result. 11 0 rw back pressure enable 1 = enable port ?s hal f - duplex back pressure. 0 = disable port ?s half -du plex back pressure. 10 1 rw transmit enable 1 = enable packet transmission on the port . 0 = disable packet transmission on the port . 9 1 rw receive enable 1 = enable packet reception on the port . 0 = disable packet reception on the port . 8 0 rw learning disable 1 = disable switch address learning capability. 0 = enable switch address learning. 7 0 rw sniffer port 1 = port is designated as a sniffer port and tr ansmits packets that are monitored. 0 = port is a normal port . 6 0 rw receive sniff 1 = all packets received on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port . ? 0 = no receive monitoring. 5 0 rw transmit sniff 1 = all packets transmitted on th e port are marked as ?monitored packets? and forwarded to the designated ?sniffer port .? 0 = no transmit monitoring. 4 0 rw reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 146 revision 1.0 port 1 control register 2 (0x06e ? 0x06f): p1cr2 (continued) bit default r/w description 3 0 rw user priority ceiling 1 = if the packet?s ?priority field? is greater than the ?user priority field? in the port vid control register bit[15:13], replace the packet?s ?priority field? with the ?user priority field? in the port vid control register bit[15:13]. 0 = do not compare and replace the packet?s ?priority field.? 2 ? 0 111 rw port vlan membership define the port ?s port vlan membership. bit [2] stands for the host port , bit [1] for port 2, and bit [0] for port 1. the port can only communicate within the membership. a ?1? includes a port in the membership; a ?0? excludes a port from the membership. port 1 vid control register (0x070 ? 0x071): p1vidcr this regist er contains control bits for the switch port 1 function. this register has two main uses. it is associated with the ingress of untagged packets and used for egress tagging as well as being used for address lookup and providing a default vid for the ingress of untagged or null - vid - tagged packets. bit default r/w description 15 ? 13 0x0 rw default tag[15:13] port ?s default tag, containing ?user priority field? bits. 12 0 rw default tag[12] port ?s default tag, containing the cfi bit. 11 ? 0 0x001 rw default tag[11:0] port ?s default tag, containing the vid[11:0].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 147 revision 1.0 port 1 control register 3 (0x072 ? 0x073): p1cr3 this register contains control bits for the switch port 1 function. bit default r/w description 15 ? 5 0x000 ro reserved 4 0 rw reserved 3 ? 2 00 rw ingress limit mode these bits determine what kinds of frames are limited and counted against i ngress rate limiting as follows: 00 = limit and count all frames. 01 = limit and count broadcast, multicast, and flooded unicast frames. 10 = limit and count broadcast and multicast frames only. 11 = limit and count broadcast frames only. 1 0 rw count inter frame gap count ifg bytes. 1 = each frame?s minimum inter frame gap. ifg bytes (12 per frame) are included in ingress and egress rate limiting calculations. 0 = ifg bytes are not counted. 0 0 rw count preamble count preamble bytes. 1 = each frame?s preamble bytes (8 per frame) are included in ingress and egress rate limiting calculations. 0 = preamble bytes are not counted. port 1 ingress rate control register 0 (0x074 ? 0x075): p1ircr0 this register contains the port 1 ingress rate limiting control for priority 1 and priority 0. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw ingress data rate limit for priority 1 frames ingress priority 1 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw ingress data rate limit for priority 0 frames ingress priority 0 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 148 revision 1.0 table 21. ingress or egress data rate limits data rate limit for ingress or egress 100bt for priority [3:0] register bit [14:8] or bit [6:0] 10bt for priority [3:0] register bit [14:8] or bit [6:0] 0x01 to 0x64 for the rate matches 1 mbps to 100 mbps respectively 0x01 to 0x0a for the rate matches 1mbps to 10 mbps respectively 0x00 (default) for the rate is no limit (full 100 mbps) 0x00 (default) for the rate is no limit (full 10 mbps) 64 kbps 0x65 128 kbps 0x66 192 kbps 0x67 256 kbps 0x68 320 kbps 0x69 384 kbps 0x6a 448 kbps 0x6b 512 kbps 0x6c 576 kbps 0x6d 640 kbps 0x6e 704 kbps 0x6f 768 kbps 0x70 832 kbps 0x71 896 kbps 0x72 960 kbps 0x73 port 1 ingress rate control register 1 (0x076 ? 0x077): p1ircr1 this register contains the port 1 ingress rate limiting control bits for priority 3 and priority 2. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw ingress data rate limit for priority 3 frames ingress priority 3 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the default value 0x00 is full rate at 1 0mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw ingress data rate limit for priority 2 frames ingress priority 2 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the default value 0x00 i s full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 149 revision 1.0 port 1 egress rate control register 0 (0x078 ? 0x079): p1ercr0 this register contains the port 1 egress rate limiting control bits for priority 1 and priority 0. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw egress data rate limit for priority 1 frames egress priority 1 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw e gress rate limit control enable 1 = enable egress rate limit control. 0 = disable egress rate limit control. 6 ? 0 0x00 rw egress data rate limit for priority 0 frames egress priority 0 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. port 1 egress rate control register 1 (0x07a ? 0x07b): p1ercr1 this register contains the port 1 egress rate limiting control bits for priority 3 and priority 2. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw egress data rate limit for priority 3 frames egress priority 3 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw egress data rate limit for priority 2 frames egress priority 2 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 150 revision 1.0 port 1 ph y special control/status, linkmd (0x07c ? 0x07d): p1scslmd th is register contains the linkmd c ontrol and status information of phy 1. bit default r/w description bit is same as : 15 0 ro cdt_10m_short 1 = less than 10 meter short. bit [12] in miim phyad1 = 0x1, 0x1d 14 ? 13 00 ro cable diagnostic test results [00] = normal condition. [01] = open condition has been detected in cable. [10] = short condition has been detected in cable. [11] = cable diagnostic test has failed. bits [14:13] in miim phyad1 = 0x1, 0x1d 12 0 rw/ sc cable diagnostic test enable 1 = cable diagnostic test is enabled. it is self - cleared after the test is done. 0 = indicates that the cable diagnostic test has completed and the status information is valid for reading. bit [15] in miim phyad1 = 0x1, 0x1d 11 0 rw force_link 1 = force link pass. 0 = normal ope ration. bit [3] in p1phyctrl 10 1 rw reserved 9 0 rw remote (near - end) loopback 1 = perform remote loopback at port 1's phy (rxp1/rxm1 - > txp1/txm1) 0 = normal operation bit [1] in p1phyctrl 8 ? 0 0x000 ro cdt_fault_count distance to the fault. it?s approximately 0.4m*cdt_fault_count. bits [8:0] in miim phyad1 = 0x1, 0x1d port 1 control register 4 (0x07e ? 0x07f): p1cr4 this regis ter contains control bits for the switch port 1 function. bit default r/w description bit is same as : 15 0 rw reserved 14 0 rw disable t ransmit 1 = disable the port ?s transmitter. 0 = normal operation. bit[1] in p1mbcr 13 0 rw /sc restart auto - negotiation 1 = restart auto - negotiation . 0 = normal operation. bit [9] in p1mbcr 12 0 rw disable far - end - fault 1 = d isable far - end- fault detection. 0 = n ormal operation. for 100 base- fx fiber mode operation. bit [2] in p1mbcr
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 151 revision 1.0 port 1 control register 4 (0x07e ? 0x07f): p1cr4 (continued) bit default r/w description bit is same as: 11 0 rw power down 1 = power down. 0 = normal operation. no change to registers setting. bit [11] in p1mbcr 10 0 rw disable auto - mdi/mdi -x 1 = disable auto - mdi/mdi - x function. 0 = enable auto - mdi/mdi - x function. bit [3] in p1mbcr 9 0 rw force mdi -x 1 = if auto - mdi/mdi - x is disabled, force phy into mdi - x mode. 0 = do not force phy into mdi - x mode. bit [4] in p1mbcr 8 0 rw far - end loopback 1 = perform loopback, as indicated: start: rxp2/rxm2 ( port 2). loopback: pmd/pma of port 1?s phy. end: txp2/txm2 ( port 2). 0 = normal operation. bit [14] in p1mbcr 7 1 rw auto - negotiation enable 1 = auto - negotiation is enabled. 0 = disable auto - negotiation , speed, and du plex are decided by bits [6:5] of the same register. bit [12] in p1mbcr 6 1 rw force speed 1 = force 100bt if auto - negotiation is disabled (bit [ 7 ] ). 0 = force 10bt if auto - negotiation is disabled (bit [ 7 ] ). bit [13] in p1mbcr 5 1 rw force duplex 1 = force full - duplex if auto - negotiation is disabled. 0 = force half - duplex if auto - negotiation is disabled. it is always in half - duplex if auto - negotiation is enabled but failed. bit [8] in p1mbcr 4 1 rw advertised flow control capability. 1 = advertise flow control (pause) capability. 0 = suppress flow control (pause) capability from transmission to link partner. bit [10] in p1anar 3 1 rw advertised 100bt full - duplex capability. 1 = advertise 100bt full - duplex capability. 0 = suppress 100bt full - duplex capability from transmission to link partner. bit [8] in p1anar 2 1 rw advertised 100bt half - duplex capability. 1 = advertise 100bt half - duplex capability. 0 = suppress 100bt half - duplex capability from transmission to link partner. bit [7] in p1anar
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 152 revision 1.0 port 1 control register 4 (0x07e ? 0x07f): p1cr4 (continued) bit default r/w description bit is same as: 1 1 rw advertised 10bt full - duplex capability 1 = advertise 10bt full - duplex capability. 0 = suppress 10bt full - duplex capability from transmission to link partner. bit [6] in p1anar 0 1 rw adverti sed 10bt half - duplex capability 1 = advertise 10bt half - duplex capability. 0 = suppress 10bt half - duplex capability from transmission to link partner. bit [5] in p1anar port 1 status register (0x080 ? 0x081): p1sr this regis ter contains status bits for the switch port 1 function. bit default r/w description bit is same as: 15 1 rw hp_m dix 1 = hp auto - mdi - x mode. 0 = micrel auto - mdi - x mode. bit [5] in p1mbcr 14 0 ro reserved 13 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. bit [5] in p1phyctrl 12 0 ro transmit flow control enable 1 = transmit flow control feature is active. 0 = transmit flow control feature is inactive. 11 0 ro receive flow control enable 1 = receive flow control feature is active. 0 = receive flow control feature is inactive. 10 0 ro operation speed 1 = link speed is 100 mbps. 0 = link speed is 10 mbps. 9 0 ro operation duplex 1 = link duplex is full. 0 = link duplex is half. 8 0 ro far - end - fault 1 = f ar - end- fault detected. 0 = n o far -end- fault detected. for 100 base- fx fiber mode operation. bit [4] in p1mbsr 7 0 ro mdi -x s tatus 0 = mdi. 1 = mdi - x. bit[ 4] in p1phyctrl
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 153 revision 1.0 port 1 status register (0x080 ? 0x081): p1sr (continued) bit default r/w description bit is same as: 6 0 ro auto - negotiation done 1 = auto - negotiation done. 0 = auto - negotiation not done. bit [5] in p1mbsr 5 0 ro link status 1 = link good. 0 = link not good. bit [2] in p1mbsr 4 0 ro partner flow control capability 1 = link partner flow control (pause) capable. 0 = link partner not flow control (pause) capable. bit [10] in p1anlpr 3 0 ro partn er 100bt full - duplex capability 1 = link partner 100bt full - duplex capable. 0 = link partner not 100bt full - duplex capable. bit [8] in p1anlpr 2 0 ro partn er 100bt half - duplex capability 1 = link partner 100bt half - duplex capable. 0= link partner not 100bt half - duplex capable. bit [7] in p1anlpr 1 0 ro part ner 10bt full - duplex capability 1= link partner 10bt full - duplex capable. 0 = link partner not 10bt full - duplex capable. bit [6] in p1anlpr 0 0 ro part ner 10bt half - duplex capability 1 = link partner 10bt half - duplex capable. 0 = link partner not 10bt half - duplex capable. bit [5] in p1anlpr 0x082 ? 0x083: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 154 revision 1.0 port 2 control registers port 2 control register 1 (0x084 ? 0x085): p2cr1 this register contains control bits for the switch port 2 function. bit default r/w description 15 0 ro reserved 14 - 12 0 0 0 r/w port 2 led direct control these bits directl y control the port 2 led pins. 0xx = normal led function as set up via re g. 0x00e ? 0x00f, bit [9:8]. 100 = both port 2 leds off. 101 = port 2 led1 off, led0 on. 110 = port 2 led1 on, led0 off. 111 = both port 2 leds on. 11 0 rw source address filtering enable for mac address 2 1 = enable the source address filtering function when the sa matches mac address 2 in safmaca2 (0x0b6 ? 0x0bb). 0 = disable source address filtering function. 10 0 rw source address filtering enable for mac address 1 1 = enable the source address f iltering function when the sa matches mac address 1 in safmaca1 (0x0b0 ? 0x0b5). 0 = disable source address filtering function. 9 0 rw drop tagged packet enable 1 = enable to drop tagged ingress packets. 0 = disable to drop tagged ingress packets. 8 0 rw tx two queues select enable 1 = the port 2 output queue is split into two priority queues (q0 and q1) 0 = single output queue on port 2. there is no priority differentiation even though packets are classified into high or low priority. 7 0 rw broadcast storm protection enable 1 = enable broadcast storm protection for ingress packets on port 2. 0 = disable broadcast storm protection. 6 0 rw diffserv priority classification enable 1 = enable diffserv priority classification for ingress packets on port 2. 0 = disable diffserv function. 5 0 rw 802.1p priority classification enable 1 = enable 802.1p priority classification for ingress packets on port 2. 0 = disable 802.1p.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 155 revision 1.0 port 2 control register 1 (0x084 ? 0x085): p2cr1 (continued) bit default r/w description 4 ? 3 00 rw port - based priority classification 00 = ingress packets on port 2 are classified as priority 0 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 01 = ingress packets on port 2 are classified as priority 1 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 10 = ingress packets on port 2 are classified as priority 2 queue if ?dif fserv? or ?802.1p? classification is not enabled or fails to classify. 11 = ingress packets on port 2 are classified as priority 3 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. note : ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. 2 0 rw tag insertion 1 = when packets are output on port 2, the switch adds 802.1p/q tags to packets without 802.1p/q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress port ?s ? port vid?. 0 = disable tag insertion. 1 0 rw tag removal 1 = when packets are output on port 2, the switch removes 802.1p/q tags from packets with 802.1p/q tags when received. the switch will not modify packets received without tags. 0 = disable tag removal. 0 0 rw tx multiple queues select enable 1 = the port 2 output queue is split into four priority queues (q0, q1, q2 and q3). 0 = single output queue on port 2. there is no priority differentiation even though packets are classified into high or low priority. port 2 control register 2 (0x086 ? 0x087) : p2cr2 this register contains control bits for the switch port 2 function. bit default r/w description 15 0 rw reserved 14 0 rw ingress vlan filtering 1 = the switch discards packets whose vid port membership in vlan table bits [18:16] does not include the ingress port vid. 0 = no ingress vlan filtering. 13 0 rw discard non pvid packets 1 = the switch discards packets whose vid does not match the ingress port default vid. 0 = no packets are discarded. 12 0 rw force flow control 1 = always enable flow control on the port , regardless of auto - negotiation result. 0 = the flow control is enabled based on auto - negotiation result.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 156 revision 1.0 port 2 control register 2 (0x086 ? 0x087): p2cr2 (continued) bit default r/w description 11 0 rw back pressure enable 1 = enable port ?s half - duplex back pressure. 0 = disable port ?s half - duplex back pressure. 10 1 rw transmit enable 1 = enable packet transmission on the port . 0 = disable packet transmission on the port . 9 1 rw receive enable 1 = enable packet reception on the port . 0 = disable packet reception on the port . 8 0 rw learning disable 1 = disable switch address learning capability. 0 = enable switch address learning. 7 0 rw sniffer port 1 = port is designated as a sniffer port and transmits packets that are monitored. 0 = port is a normal port . 6 0 rw receive sniff 1 = all packets received on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port .? 0 = no receive monitoring. 5 0 rw transmit sniff 1 = all packets transmitted on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port .? 0 = no transmit monitoring. 4 0 rw reserved 3 0 rw user priority ceiling 1 = if the packet?s ?priority field? is greater than the ?user priority field? in the port vid control register bit[15:13], replace the packet?s ?priority field? with the ?user priority field? in the port vid control register bit[15:13]. 0 = do not compare and replace the packet?s ?priority field.? 2 ? 0 111 rw port vlan membership define the port ?s port vlan membership. bit [2] stands for the host port , bit [1] for port 2, and bit [0] for port 1. the port can only communicate within the membership. a ?1? includes a port in the membership; a ?0? excludes a port from the membership.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 157 revision 1.0 port 2 vid control register (0x088 ? 0x089): p2vidcr this register contai ns control bits for the switch port 2 function. thi s register has two main uses. it is associated with the ingress of untagged packets and used for egress tagging as well as being used for address lookup and providing a default vid for the ingress of untagged or null - vid - tagged packets . bit default r/w description 15 ? 13 0 0 0 rw default tag[15:13] port ?s default tag, containing ?user priority field? bits. 12 0 rw default tag[12] port ?s default tag, containing cfi bit. 11 ? 0 0x001 rw default tag[11:0] port ?s default tag, containing vid[11:0]. port 2 control register 3 (0x08a ? 0x08b): p2cr3 this register contains the control bits for the switch port 2 function. bit default r/w description 15 ? 5 0x000 ro reserved 4 0 rw reserved 3 ? 2 00 rw ingress limit mode these bits determine what kinds of frames are limited and counted against i ngress rate limiting as follows: 00 = limit and count all frames. 01 = limit and count broadcast, multicast, and flooded unicast frames. 10 = limit and count broadcast and multicast frames only. 11 = limit and count broadcast frames only. 1 0 rw count inter frame gap count ifg bytes. 1 = each frame?s minimum inter frame gap. ifg bytes (12 per frame) are included in ingress an d egress rate limiting calculations. 0 = ifg bytes are not counted. 0 0 rw count preamble count preamble bytes. 1 = each frame?s preamble bytes (8 per frame) are includ ed in ingress and egress rate limiting calculations. 0 = preamble bytes are not counted.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 158 revision 1.0 port 2 ingress rate control register 0 (0x08c ? 0x08d): p2ircr0 this register contains the port 2 ingress rate limiting control bits for priority 1 and priority 0. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw ingress data rate limit for priority 1 frames ingress priority 1 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw ingress data rate limit for priority 0 frames ingress priority 0 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. port 2 ingress rate control register 1 (0x08e ? 0x08f): p2ircr1 this register contains the port 2 ingress rate limiting control bits for priority 3 and priority 2. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw ingress data rate limit for priority 3 frames ingress priority 3 frames will be limit ed or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw ingress data rate limit for priority 2 frames ingress priority 2 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the default value 0x00 is full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 159 revision 1.0 port 2 egress rate control register 0 (0x090 ? 0x091): p2ercr0 this register contains the port 2 egress rate limiting control bits for priority 1 and priority 0. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw egress data rate limit for priority 1 frames egress priority 1 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw egress rate limit cont rol enable 1 = enabl e egress rate limit control. 0 = disable egress rate limit control. 6 ? 0 0x00 rw egress data rate limit for priority 0 frames egress priority 0 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. port 2 egress rate control register 1 (0x092 ? 0x093): p2ercr1 this register contains the port 2 egress rate limiting control bits for priority 3 and priority 2. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw egress data rate limit for priority 3 frames egress priority 3 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the default value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw egress data rate limit for priority 2 frames egress priority 2 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 160 revision 1.0 port 2 phy special control/status, linkmd ? (0x094 ? 0x095): p2scslmd t his register contains the linkmd control and status information of phy 2. bit default r/w description bit is same as: 15 0 ro cdt_10m_short 1 = less than 10 meter short. bit [12] in miim phyad = 0x2, 0x1d 14 ? 13 00 ro cable diagnostic results [00] = normal condition. [01] = open condition has been detected in cable. [10] = short condition has been detected in cable. [11] = cable diagnostic test has failed. bits [14:13] in miim phyad = 0x2, 0x1d 12 0 rw/ sc cable diagnostic test enable 1 = cable diagnostic test is enabled. it is self - cleared after the test is done. 0 = indicates that the cable diagnostic test has completed and the status information is valid for reading. bit [15] inmiim phyad = 0x2, 0x1d 11 0 rw force_link force link. 1 = force link pass. 0 = normal operation. bit [3] in p2phyctrl 10 1 rw reserved 9 0 rw remote (near - end) loopback 1 = perform remote loopback at port 2's phy (rxp2/rxm2 - > txp2/txm2) 0 = normal operation bit [1] in p2phyctrl 8 ? 0 0x000 ro cdt_fault_count distance to the fault. it?s approximately 0.4m*cdt_fault_count. bits [8:0] in miim phyad = 0x2, 0x1d port 2 control register 4 (0x096 ? 0x097): p2cr4 this register contains the control bits for the switch port 2 function. bit default r/w description bit is same as: 15 0 rw reserved 14 0 rw disable t ransmit 1 = disable the port ?s transmitter. 0 = normal operation. bit [1] in p2mbcr 13 0 rw /sc restart auto - negotiation 1 = restart auto - negotiation . 0 = normal operation. bit [9] in p2mbcr 12 0 rw disable far - end - fault 1 = d isable far - end- fault detection. 0 = n ormal operation. for 100 base- fx fiber - mode operation. bit [2] in p2mbcr
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 161 revision 1.0 port 2 control register 4 (0x096 ? 0x097): p2cr4 (continued) bit default r/w description bit is same as: 11 0 rw power down 1 = power down. 0 = normal operation. no change to registers setting bit [11] in p2mbcr 10 0 rw disable auto - mdi/mdi -x 1 = disable auto - mdi/mdi - x function. 0 = enable auto - mdi/mdi - x function. bit [3] in p2mbcr 9 0 rw force mdi -x 1 = if auto - mdi/mdi - x is disabled, force phy into mdi - x mode. 0 = do not force phy into mdi - x mode. bit [4] in p2mbcr 8 0 rw far - end loopback 1 = perform loopback, as indicated: start: rxp1/rxm1 ( port 1). loopback: pmd/pma of port 2?s phy. end: txp1/txm1 ( port 1). 0 = normal operation. bit [14] in p2mbcr 7 1 rw auto - negotiation enable 1 = auto - negotiation is enabled. 0 = disable auto - negotiation , speed, and duplex are decided by bits [6:5] of the same register. bit [12] in p2mbcr 6 1 rw force speed 1 = force 100bt if auto - negotiation is disabled (bit [7]). 0 = force 10bt if auto - negotiation is disabled (bit [7]). bit [13] in p2mbcr 5 1 rw force duplex 1 = force full duplex if auto - negotiation is disabled. 0 = force half duplex if auto - negotiation is disabled. it is always in half duplex if auto - negotiation is enabled but failed. bit [8] in p2mbcr 4 1 rw advertised flow control capability. 1 = advertise flow control (pause) capability. 0 = suppress flow control (pause) capability from transmission to link partner. bit [10] in p2anar 3 1 rw advertised 100bt full - duplex capability. 1 = advertise 100bt full - duplex capability. 0 = suppress 100bt full - duplex capability from transmission to link partner. bit [8] in p2anar 2 1 r w advertised 100bt half - duplex capability. 1 = advertise 100bt half - duplex capability. 0 = suppress 100bt half - duplex capability from transmission to link partner. bit [7] in p2anar
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 162 revision 1.0 port 2 control register 4 (0x096 ? 0x097): p2cr4 (continued) bit default r/w description bit is same as: 1 1 rw advertised 10bt full - duplex capability. 1 = advertise 10bt full - duplex capability. 0 = suppress 10bt full - duplex capability from transmission to link partner. bit [6] in p2anar 0 1 rw advertised 10bt half - duplex capability. 1 = advertise 10bt half - duplex capability. 0 = suppress 10bt half - duplex capab ility from transmission to link partner. bit [5] in p2anar port 2 status register (0x098 ? 0x099): p2sr this register contains status bits for the switch port 2 function. bit default r/w description bit is same as : 15 1 rw hp_mdix 1 = hp auto - mdi - x mode. 0 = micrel auto - mdi - x mode. bit [5] in p2mbcr 14 0 ro reserved 13 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. bit [5] in p2phyctrl 12 0 ro transmit flow control enable 1 = transmit flow control feature is active. 0 = transmit flow control feature is inactive. 11 0 ro receive flow control enable 1 = receive flow control feature is active. 0 = receive flow control feature is inactive. 10 0 ro operation speed 1 = link speed is 100 mbps. 0 = link speed is 10 mbps. 9 0 ro operation duplex 1 = link duplex is full. 0 = link duplex is half. 8 0 ro far - end - fault 1 = f ar - end- fault detected. 0 = n o far -end- fault detected. for 100 base- fx fiber mode operation. bit [4] in p2mbsr 7 0 ro mdi - x status 0 = mdi. 1 = mdi - x. bit [4] in p2phyctrl
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 163 revision 1.0 port 2 status register (0x098 ? 0x099): p2sr (continued) bit default r/w description bit is same as: 6 0 ro auto - negotiation done 1 = auto - negotiation done. 0 = auto - negotiation not done. bit [5] in p2mbsr 5 0 ro link status 1 = link good. 0 = link not good. bit [2] in p2mbsr 4 0 ro partner flow control capability. 1 = link partner flow control (pause) capable. 0 = link partner not flow control (pause) capable. bit [10] in p2anlpr 3 0 ro partner 100bt full - duplex capability. 1 = link partner 100bt full - duplex capable. 0 = link partner not 100bt full - duplex capable. bit [8] in p2anlpr 2 0 ro partner 100bt half - duplex capability. 1 = link partner 100bt half - duplex capable. 0= link partner not 100bt half - duplex capable. bit [7] in p2anlpr 1 0 ro partner 10bt full - duplex capability. 1= link partner 10bt full - duplex capable. 0 = link partner not 10bt full - duplex capable. bit [6] in p2anlpr 0 0 ro partner 10bt half - duplex capability. 1 = link partner 10bt half - duplex capable. 0 = link partner not 10bt half - duplex capable. bit [5] in p2anlpr 0x09a ? 0x09b: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 164 revision 1.0 port 3 control registers port 3 control register 1 (0x09c ? 0x09d): p3cr1 this register contains control bits for the switch port 3 function. bit default r/w description 15 ? 10 0x00 ro reserved 9 0 rw drop tagged packet enable 1 = enable to drop tagged ingress packets. 0 = disable to drop tagged ingress packets. 8 0 rw tx two queues select enable 1 = the port 3 output queue is split into two priority queues (q0 and q1). 0 = single output queue on port 3. there is no priority differentiation even though packets are classified into high or low priority. 7 0 rw broadcast storm protection enable 1 = enable broadcast storm protection for ingress packets on port 3. 0 = disable broadcast storm protection. 6 0 rw diffserv priority classification enable 1 = enable diffserv priority classification for ingress packets on port 3. 0 = disable diffserv function. 5 0 rw 802.1p priority classification enable 1 = enable 802.1p priority classification for ingress packets on port 3. 0 = disable 802.1p. 4 ? 3 00 rw port - based priority classification 00 = ingress packets on port 3 are classified as priority 0 queue if ? diffserv? or ?802.1p? classification is not enabled or fails to classify. 01 = ingress packets on port 3 are classified as priority 1 queue if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. 10 = ingress packets on port 3 are classified as priority 2 queue if ? diffserv? or ?802.1p? classification is not enabled or fa ils to classify. 11 = ingress packets on port 3 are classified as priority 3 queue if ? diffserv? or ?802.1p? classification is not enabled or fails to classify. note : ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. 2 0 rw tag insertion 1 = when packets are output on port 3, the switch adds 802.1p/q tags to packets without 802.1p/q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress port ?s ? port vid?. 0 = disable tag insertion. 1 0 rw tag removal 1 = when packets are output on port 3, the switch removes 802.1p/q tags from packets with 802.1p/q tags when received. the switch will not modify packets received without tags. 0 = disable tag removal.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 165 revision 1.0 port 3 control register 1 (0x09c ? 0x09d): p3cr1 (continued) bit default r/w description 0 0 rw tx multiple queues select enable 1 = the port 3 output queue is split into four priority queues (q0, q1, q2 and q3). 0 = single output queue on port 3. there is no priority differentiation even though packets are classified int o high or low priority. port 3 control register 2 (0x09e ? 0x09f): p3cr2 this regis ter contains control bits for the switch port 3 function. bit default r/w description 15 0 rw reserved 14 0 rw ingress vlan filtering 1 = the switch discards packets whose vid port membership in vlan table bits [18:16] does not include the ingress port vid. 0 = no ingress vlan filtering. 13 0 rw discard non pvid packets 1 = the switch discards packets whose vid does not match th e ingress port default vid. 0 = no packets are discarded. 12 0 rw reserved 11 0 rw back pressure enable 1 = enable port ?s half - duplex back pressure. 0 = disable port ?s half - duplex back pressure. 10 1 rw transmit enable 1 = enable packet transmission on the port . 0 = disable packet transmission on the port . 9 1 rw receive enable 1 = enable packet reception on the port . 0 = disable packet reception on the port . 8 0 rw learning disable 1 = disable switch address learning capability. 0 = enable switch address learning. 7 0 rw sniffer port 1 = port is designated as a sniffer port and transmits packets that are monitored. 0 = port is a normal port . 6 0 rw receive sniff 1 = all packets received on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port .? 0 = no receive monitoring.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 166 revision 1.0 port 3 control register 2 (0x09e ? 0x09f): p3cr2 (continued) bit default r/w description 5 0 rw transmit sniff 1 = all packets transmitted on the port are marked as ?monitored packets? and forwarded to the designated ?sniffer port .? 0 = no transmit monitoring. 4 0 rw reserved 3 0 rw user priority ceiling 1 = if the packet?s ?priority field? is greater than the ?user priority field? in the port vid control register bit[15:13], replace the packet?s ?priority field? with the ?user priority field? in the port vid control register bit[15:13]. 0 = do not compare and replace the packet?s ?priority field.? 2 ? 0 111 rw port vlan membership define the port ?s port vlan membership. bit [2] stands for the host port , bit [1] for port 2, and bit [0] for port 1. the port can only communicate within the membership. a ?1? includes a port in the membership; a ?0? excludes a port from the membership. port 3 vid control register (0x0a0 ? 0x0a1): p3vidcr this register contains the control bits for the switch port 3 function. this register has two main uses. it is associated with the ingress of untagged packets and used for egress tagging as well as being used for address lookup and providing a default vid for the ingress of untagged or null - vid - tagged packets . bit default r/w description 15 ? 13 0x0 rw default tag[15:13] port ?s default tag, containing ?user priority field? bits. 12 0 rw default tag[12] port ?s default tag, containing cfi bit. 11 ? 0 0x001 rw default tag[11:0] port ?s default tag, containing vid[11:0].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 167 revision 1.0 port 3 control register 3 (0x0a2 ? 0x0a3): p3cr3 this register contains the control bits for the switch port 3 function. bit default r/w description 15 ? 8 0x00 ro reserved 7 ? rw port 3 mac mode the rx_dv ( pin 31) value is latched into this bit during power - up/reset. 1 = mac mii mode. 0 = phy mii mode. 6 ? 4 0 00 rw reserved 3 ? 2 00 rw ingress limit mode these bits determine what kinds of frames are limited and counted against i ngress rate limiting as follows: 00 = limit and count all frames. 01 = limit and count broadcast, multicast, and flooded unicast frames. 10 = limit and count broadcast and multicast frames only. 11 = limit and count broadcast frames only. 1 0 rw count inter frame gap count ifg bytes. 1 = each frame?s minimum inter frame gap. ifg bytes (12 per frame) are included in i ngress and egress rate limiting calculations. 0 = ifg bytes are not counted. 0 0 rw count preamble count preamble bytes. 1 = each frame?s preamble bytes (8 per frame) are included in ingress and egress rate limiting calculations. 0 = preamble bytes are not counted.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 168 revision 1.0 port 3 ingress rate control register 0 (0x0a4 ? 0x0a5): p3ircr0 this register contains the port 3 ingress rate limiting control bits for priority 1 and priority 0. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw ingress data rate limit for priority 1 frames ingress priority 1 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw sample edge of refclk_i clock in port 3 rmii mode the refclk input clock sample edge control. 0 = use the rising edge of refclk clock to sample the input data in rmii mode. 1 = use the falling edge of refclk clock to sample the input data in rmii mode. 6 ? 0 0x00 rw ingress data rate limit for priority 0 frames ingress priority 0 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. port 3 ingress rate control register 1 (0x0a6 ? 0x0a7): p3ircr1 this register contains the port 3 ingress rate limiting control bits for priority 3 and priority 2. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw ingress data rate limit for priority 3 frames ingress priority 3 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the default value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw ingress data rate limit for priority 2 frames ingress priority 2 frames will be limit ed or discarded as shown in the ingress or egress data rate limits table . note : the default value 0 x00 is full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 169 revision 1.0 port 3 egress rate control register 0 (0x0a8 ? 0x0a9): p3ercr0 this register contains the port 3 egress rate limiting control bits for priority 1 and priority 0. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw egress data rate limit for priority 1 frames egress priority 1 frames will be limit ed or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. 7 0 rw egress rate limit control enable 1 = enable egress rate limit control. 0 = disable egress rate limit control. 6 ? 0 0x00 rw egress data rate limit for priority 0 frames egress priority 0 frames will be limited or discarded as shown in the ingress or egress data rate limits table. note: the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit. port 3 egress rate control register 1 (0x0aa ? 0x0 ab): p3ercr1 this register contains the port 3 egress rate limiting control bits for priority 3 and priority 2. bit default r/w description 15 0 rw reserved 14 ? 8 0x00 rw egress data rate limit for priority 3 frames egress priority 3 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 10 mbps with no limit. 7 0 rw reserved 6 ? 0 0x00 rw egress data rate limit for priority 2 frames egress priority 2 frames will be limited or discarded as shown in the ingress or egress data rate limits table . note : the defaul t value 0x00 is full rate at 10mbps or 100 mbps with no limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 170 revision 1.0 switch global control registers switch global control register 8 (0x0ac ? 0x0ad): sgcr8 this register contains the global control bits for the switch function. bit default r/w description 15 ? 14 10 rw two queue priority mapping these bits determine the mapping between the priority of the incoming frames and the destination on- chip queue in a two queue configuration which uses egress queues 0 and 1. ?00? = egress queue 1 receives priority 3 frames egress queue 0 receives priority 0 , 1, 2 frames ?01? = egress queue 1 receives priority 1, 2, 3 frames egress queue 0 rec eives priority 0 frames ?10? = (default) egre ss queue 1 receives priority 2, 3 frames egress queue 0 receives priority 0 , 1 frames ?11? = egress queue 1 receives priority 1, 2, 3 frames egress queue 0 receives priority 0 frames 13 ? 11 0 0 0 ro reserved 10 0 rw / sc flush dynamic mac table before flushing the dynamic mac table, switch address learning must be disabled by setting bit[8] in the p1cr2, p2cr2 and p3cr2 registers . 9 0 rw flush static mac table 1 = e nable f lush static mac table for spanning tree application . 0 = disable f lush static mac table for spanning tree application. 8 0 rw port 3 tail - tag mode enable 1 = e nable tail tag mode. 0 = disable tail tag mode. 7 ? 0 0x00 rw force pause off iteration limit time enable 0x01 ? 0xff = e nable to force pause off iteration l imit time (a unit number is 160 ms). 0x00 = disable force pause off iteration limit.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 171 revision 1.0 switch global control register 9 (0x0ae ? 0x0af): sgcr9 this register contains the global control bits for the switc h function. bit default r/w description 15 ? 11 0x00 ro reserved 10 ? 8 0 0 0 rw forwarding invalid frame define the forwarding port for frame with invalid vid. bit [10] stands for the host port , bit [9] for port 2, and bit [8] for port 1. 7 ? 6 00 rw reserved 5 0 rw enable insert source port pvid tag when untagged frame from port 3 to port 2 1 = enable. 0 = disable. 4 0 rw enable insert source port pvid tag when untagged frame from port 3 to port 1 1 = enable. 0 = disable. 3 0 rw enable insert source port pvid tag when untagged frame from port 2 to port 3 1 = enable. 0 = disable. 2 0 rw enable insert source port pvid tag when untagged frame from port 2 to port 1 1 = enable. 0 = disable. 1 0 rw enable insert source port pvid tag when untagged frame from port 1 to port 3 1 = enable. 0 = disable. 0 0 rw enable insert source port pvid tag when untagged frame from port 1 to port 2 1 = enable. 0 = disable.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 172 revision 1.0 source address filtering mac address registers source address filtering mac address 1 register low (0x0b0 ? 0x0b1): safmaca1l the following table shows the register bit fields for the low word of mac address 1. bit default value r/w description 15 ? 0 0x0000 rw source filtering mac address 1 low the least significant word of mac address 1. source address filtering mac address 1 register middle (0x0b2 ? 0x0b3): safmaca1m the following table shows the register bit fields for the middle word of mac address 1. bit default value r/w description 15 ? 0 0x0000 rw source filtering mac address middle 1 the middle word of mac address 1. source address filtering mac address 1 register high (0x0b4 ? 0x0b5): safmaca1h the following table shows the register bit fields for the high word of mac address 1. bit default value r/w description 15 ? 0 0x0000 rw source filtering mac address 1 high the most significant word of mac address 1. source address filtering mac address 2 register low (0x0b6 ? 0x0b7): safmaca2l the following table shows the register bit fields for the low word of mac address 2. bit default value r/w description 15? 0 0x0000 rw source filtering mac address low 2 the least significant word of mac address 2. source address filtering mac address 2 register middle (0x0b8 ? 0x0b9): safmaca2m the following table shows the register bit fields for the middle word of mac address 2. bit default value r/w description 15 ? 0 0x0000 rw source filtering mac address middle 2 the middle word of mac address 2.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 173 revision 1.0 source address filtering mac address 2 register high (0x0ba ? 0x0bb): safmaca2h the following table shows the register bit fields for the high word of mac address 2. bit default value r/w description 15 ? 0 0x0000 rw source filtering mac address high 2 the most significant word of mac address 2. 0x0bc ? 0x0c7: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 174 revision 1.0 txq rate control registers port 1 txq rate control register 1 (0x0c8 ? 0x0c9): p1txqrcr1 this register contains the q2 and q3 rate control bits for port 1. bit default value r/w description 15 1 rw port 1 transmit queue 2 (high) ratio control 0 = strict priority. port 1 will transmit all the packets from this priority q 2 before transmit lower priority queue. 1 = bit[ 14:8 ] reflect the number of packet s allow to tra nsmit from th is priority q 2 within a certain time. 14 ? 8 0x04 rw port 1 transmit queue 2 (high) ratio this ratio indicates the number of packet for high priority packet can transmit within a given period. 7 1 rw port 1 transmit queue 3 (highest) ratio control 0 = strict priority. port 1 will transmit all the p ackets from this priority q 3 before transmit lower priority queue. 1 = bit[ 6:0 ] reflect the number of packet s allow to tr ansmit from this priority q 3 within a certain time. 6 ? 0 0x08 rw port 1 transmit queue 3 (highest) ratio this ratio indicates the number of packet for highest priority packet can transmit within a given period. port 1 txq rate control register 2 (0x0ca ? 0x0cb): p1txqrcr2 this register contains the q0 and q1 r ate control bits for port 1. bit default value r/w description 15 1 rw port 1 transmit queue 0 (lowest) ratio control 0 = strict priority. port 1 will transmit all the packets from this priority q 0 after transmit higher priority queue. 1 = bit[ 14:8 ] reflect the number of packet s allow to tra nsmit from this priority q 0 within a certain time. 14 ? 8 0x01 rw port 1 transmit queue 0 (lowest) ratio this ratio indicates the number of packet for lowest priority packet can transmit within a given period. 7 1 rw port 1 transmit queue 1 (low) ratio control 0 = strict priority. port 1 will transmit all the packets from this priority q 1 before transmit lower priority queue. 1 = bit[ 6:0 ] reflect the number of packet s allow to tra nsmit fro m this priority q 1 within a certain time. 6 ? 0 0x02 rw port 1 transmit queue 1 (low) ratio this ratio indicates the number of packet for low priority packet can transmit within a given period.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 175 revision 1.0 port 2 txq rate control register 1 (0x0cc ? 0x0cd): p2txqrcr1 this register contains the q2 and q3 rate control bits for port 2. bit default value r/w description 15 1 rw port 2 transmit queue 2 (high) ratio control 0 = strict priority. port 2 will transmit all the packets from this pri ority q 2 before transmit lower priority queue. 1 = bit[ 14:8 ] reflect the number of packet s allow to tra nsmit from this priority q 2 within a certain time. 14 ? 8 0x04 rw port 2 transmit queue 2 (hi gh) ratio this ratio indicates the number of packet for high priority packet can transmit within a given period. 7 1 rw port 2 transmit queue 3 (highest) ratio control 0 = strict priority. port 2 will transmit all the p ackets from this priority q 3 before transmit lower priority queue. 1 = bit[ 6:0 ] reflect the number of packet s allow to tr ansmit from this priority q 3 within a certain time. 6 ? 0 0x08 rw port 2 transmit queue 3 (highest) ratio this ratio indicates the number of packet for highest priority packet can transmit within a given period. port 2 txq rate control register 2 (0x0ce ? 0x0cf): p2txqrcr2 this register contains the q0 and q1 rate control bits for port 2. bit default value r/w description 15 1 rw port 2 transmit queue 0 (lowest) ratio control 0 = strict priority. port 2 will transmit all the packets from this priority q 0 after transmit higher priority queue. 1 = bit[ 14:8 ] reflect the number of packet s allow to tra nsmit from this priority q 0 within a certain time. 14 ? 8 0x01 rw port 2 transmit queue 0 (lowest) ratio this ratio indicates the number of packet for lowest priority packet can transmit within a given period. 7 1 rw port 2 transmit queue 1 (low) ratio control 0 = strict priority. port 2 will transmit all the packets from this priority q 1 before transmit lower priority queue. 1 = bit[ 6:0 ] reflect the number of packet s allow to tra nsmit from this priority q 1 within a certain time. 6 ? 0 0x02 rw port 2 transmit queue 1 (low) ratio this ratio indicates the number of packet for low priority packet can transmit within a given period.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 176 revision 1.0 port 3 txq rate control register 1 (0x0d0 ? 0x0d1): p3txqrcr1 this register contains the q2 and q3 rate control bits for port 3. bit default value r/w description 15 1 rw port 3 transmit queue 2 (high) ratio control 0 = strict priority. port 3 will transmit all the packets from this priority q 2 before transmit lower priority queue. 1 = bit[ 14:8 ] reflect the number of packet s allow to tra nsmit from this priority q 2 within a certain time. 14 ? 8 0x04 rw port 3 transmit queue 2 (high) ratio this ratio indicates the number of packet for high priority packet can transmit within a given period. 7 1 rw port 3 transmit queue 3 (highest) ratio control 0 = strict priority. port 3 will transmit all the p ackets from this priority q 3 before transmit lower priority queue. 1 = bit[ 6:0 ] reflect the number of packet s allow to tr ansmit from this priority q 3 within a certain time. 6 ? 0 0x08 rw port 3 transmit queue 3 (highest) ratio this ratio indicates the number of packet for highest priority packet can transmit within a given period. port 3 txq rate control register 2 (0x0d2 ? 0x0d3): p3txqrcr2 this register contains the q0 and q1 rate control bits for port 3. bit default value r/w description 15 1 rw port 3 transmit queue 0 (lowest) ratio control 0 = strict priority. port 3 will transmit all the packets from this priority q 0 after transmit higher priority queue. 1 = bit[ 14:8 ] reflect the number of packet s allow to tra nsmit from this priority q 0 within a certain time. 14 ? 8 0x01 rw port 3 transmit queue 0 (lowest) ratio this ratio indicates the number of packet for lowest pr iority packet can transmit within a given period. 7 1 rw port 3 transmit queue 1 (low) ratio control 0 = strict priority. port 3 will transmit all the packets from this priority q 1 before transmit lower priority queue. 1 = bit[ 6:0 ] reflect the number of packet s allow to tra nsmit from this priority q 1 within a certain time. 6 ? 0 0x02 rw port 3 transmit queue 1 (low) ratio this ratio indicates the number of packet for low priority packet can transmit within a given period. 0x0d4 ? 0x0d5 : reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 177 revision 1.0 input and output multiplex selection register input and output multiplex selection register (0x0d6 ? 0x0d7): iomxsel this register is used to select the functionality of pin s 59, 61, and 62. note that further programmability of the led functi on is controlled via bits [9:8 ] in the sgcr7 control register. bit default r/w description 15 ? 12 0x0 ro reserved 11 1 rw reserved 10 1 rw selection of p2led1 or gpio9 on pin 61 1 = this pin is used for p2led1 (default). 0 = this pin is used for gpio9. 9 1 rw selection of p2led0 or gpio10 on pin 62 1 = this pin is used for p2led0 (default). 0 = this pin is used for gpio10. 8 1 rw selection of p1led1 or gpio7 on pin 59 1 = this pin is used for p1led1 (default). 0 = this pin is used for gpio7. 7 1 rw reserved 6 1 rw reserved 5 1 rw reserved 4 1 rw reserved 3 1 rw reserved 2 1 rw reserved 1 1 rw reserved 0 1 rw reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 178 revision 1.0 configuration status and serial bus mode register configuration status and serial bus mode register (0x0d8 ? 0x0d9): cfgr this register is used to select the serial bus and f iber mode . the state of bits [1:0] are determined at reset time using the rxd[1:0] pins. bit default r/w description 15 ? 8 0x00 ro reserved 7 1 rw selection of port 2 mode of operation 1 = select copper mode 0 = select fiber mode (bypass mlt3 encoder/decoder, scrambler and descrambler) . valid for fml and frl devices only. when fiber mode is selected, b it [13] in dsp_cntrl_6 (0x734 ? 0x735) should be cleared. 6 1 rw selection of port 1 mode of operation 1 = select copper mode 0 = select fiber mode (bypass mlt3 encoder/decoder, scrambler and descrambler) . valid for fml and frl devices only. when fiber mo de is selected, bit [13] in dsp_cntrl_6 (0x734 ? 0x735) should be cleared. 5 ? 4 11 ro reserved 3 ? 2 1 1 rw reserved 1 ? 0 strap - in value from rxd[1:0] rw selection of serial bus mode 00 = reserved 01 = reserved 10 = spi slave mode 11 = miim mode 0x0da ? 0x0db: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 179 revision 1.0 port 1 auto - negotiation registers port 1 auto - negotiation next page transmit register (0x0dc ? 0x0dd): p1anpt this register contains the port 1 auto - negotiation next page transmit related bits. bit default r/w description 15 0 ro next page next page (np) is used by the next page function to indicate whether or not this is the last next page to be transmitted. np shall be set as follows: 1 = a dditional next page(s) will follow. 0 = l ast page. 14 0 ro reserved 13 1 r o message page message page (mp) is used by the next page function to differentiate a message page from an unformatted page. mp shall be set as follows: 1 = message page . 0 = unformatted page . 12 0 r o acknowledge 2 ackno wledge 2 (ack2) is used by the next p age function to indicate that a device has the ability to comply with the message. ack2 shall be set as follows: 1 = able to comply with message. 0 = unable to comply with message. 11 0 ro toggle toggle (t) is used by the a rbitration function to e nsure synchronization with the link partner during n ext page exchange. this bit shall always take the opposite value of the toggle bit in the previously exchanged link codeword. the initial value of the toggle bit in the first next page transmitted is the inverse of bit [ 11 ] in the base link codeword and, therefore, may assume a value of logic one o r zero. the toggle bit shall be set as follows: 1 = p revious value of the transmitted link codeword equal to logic zero. 0 = p revious value of the transmitted link codeword equal to logic one. 10 ? 0 0x001 r o message and unformatted code field mes sage/unformatted code field bit [10:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 180 revision 1.0 port 1 auto - negotiation link partner received next page register (0x0de ? 0x0df): p1alprnp this register contains the port 1 auto - negotiation link partner received next p age related bits . bit default r/w description 15 0 ro next page next page (np) is used by the next page function to indicate whether or not this is the last next page to be transmitted. np shall be set as follows: 1 = a dditional next page(s) will follow. 0 = l ast page. 14 0 ro acknowledge acknowledge (ack) is used by the auto - negotiation function to indicate that a device has successfully received its link partner?s link codeword. the acknowledge bit is encoded in bit 14 regardless of the value of the selector field or link codeword encoding. if no next page information is to be sent, this bit shall be set to logic one in the link codeword after the reception of at least three consecutive and consistent flp bursts (igno ring the acknowledge bit value). 13 0 ro message page message page (mp) is used by the next page function to differentiate a message page from an unformatted page. mp shall be set as follows: 1 = message page . 0 = unformatted page . 12 0 ro acknowledge 2 ackno wledge 2 (ack2) is used by the next p age function to indicate that a device has the ability to comply with the message. ack2 shall be set as follows: 1 = able to comply with message. 0 = unable to comply with message. 11 0 ro toggle toggle (t) is used by the a rbitration function to e nsure synchronization with the link partner during n ext p age exchange. this bit shall always take the opposite value of the toggle bit in the previously exchanged link codeword. the initial value of the toggle bit in th e first next page transmitted is the inverse of bit [ 11 ] in the base link codeword and, therefore, may assume a value of logic one o r zero. the toggle bit shall be set as follows: 1 = p revious value of the transmitted link codeword equal to logic zero. 0 = p revious value of the transmitted link codeword equal to logic one. 10 ? 0 0x000 ro message and unformatted code field mes sage/unformatted code field bit [10:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 181 revision 1.0 port 1 eee registers port 1 eee and link partner advertisement register (0x0e0 ? 0x0e1): p1eeea this register contains the port 1 eee advertisement and link partner advertisement information. note that eee is not supported in fiber mode . bit default r/w description 15 0 ro reserved 14 0 ro 10gbase - kr eee 1 = link partner eee is supported for 10gbase - kr. 0 = link partner eee is not sup port ed for 10gbase - kr. 13 0 ro 10gbase - kx4 eee 1 = link partner eee is sup port ed for 10gbase - kx4. 0 = link partner eee is not sup port ed for 10gbase - kx4. 12 0 ro 1000base - kx eee 1 = link partner eee is sup port ed for 1000base - kx. 0 = link partner eee is not sup port ed for 1000base - kx. 11 0 ro 10gbase - t eee 1 = link partner eee is sup port ed for 10gbase -t. 0 = link partner eee is not sup port ed for 10gbase - t. 10 0 ro 1000base - t eee 1 = link partner eee is sup port ed for 1000base -t. 0 = link partner eee is not sup port ed for 1000base - t. 9 0 ro 100base - tx eee 1 = link partner eee is sup port ed for 100base - tx. 0 = link partner eee is not sup port ed for 100base - tx. 8 ? 7 0 0 ro reserved 6 0 ro 10gbase - kr eee 1 = port 1 eee is sup port ed for 10gbase - kr. 0 = port 1 eee is not sup port ed for 10gbase - kr. 5 0 ro 10gbase - kx4 eee 1 = port 1 eee is sup port ed for 10gbase - kx4. 0 = port 1 eee is not sup port ed for 10gbase - kx4. 4 0 ro 1000base - kx eee 1 = port 1 eee is sup port ed for 1000base - kx. 0 = port 1 eee is not sup port ed for 1000base - kx. 3 0 ro 10gbase - t eee 1 = port 1 eee is sup port ed for 10gbase -t. 0 = port 1 eee is not sup port ed for 10gbase - t.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 182 revision 1.0 port 1 eee and link partner advertisement register (0x0e0 ? 0x0e1): p1eeea (continued) bit default r/w description 2 0 ro 1000base - t eee 1 = port 1 eee is sup port ed for 1000base -t. 0 = port 1 eee is not sup port ed for 1000base - t. 1 1 rw 100base - tx eee 1 = port 1 eee is sup port ed for 100base - tx. 0 = port 1 eee is not sup port ed for 100base - tx. to disable eee capability, clear the port 1 next page enable bit in the pcseeec register (0x0f3). 0 0 ro reserved port 1 eee wake error count register (0x0e2 ? 0x0e3): p1eeewec this register contains the port 1 eee wake error count information. note that eee is not supported in fiber mode . bit default value r/w description 15 ? 0 0x0000 rw port 1 eee wake error count this counter is incremented by each transition of lpi_wake_timer_done from false to true. it means the w akeup time is longer than 20.5 s. the value will be held at all ones in the case of overflow and will be cleared to zero after this register is read. port 1 eee control/status and auto - negotiation expansion register (0x0e4 ? 0x0e5): p1eeecs this register contains the port 1 eee control/status and auto - negotiation expansion information. note that eee is not supported in fiber mode . bit default r/w descriptio n 15 1 rw reserved 14 0 ro hardware 100bt eee enable status 1 = 100bt eee is enabled by hardware - based np exchange . 0 = 100bt eee is disabled . 13 0 ro/lh (latching high) tx lpi received 1 = indicates that the transmit pcs has received low power idle (lpi) signaling one or more times since the register was last read. 0 = indicates that the pcs has not received low power idle (lpi) signaling. the status will be latched high and stay that way until cleared. to clear this status bit, a ?1? needs to be written to this register bit. 12 0 ro tx lpi indication 1 = indicates that the transmit pcs is currently receiving low power idle (lpi) signals. 0 = indicates that the pcs is not currently receiving low power idle (lpi) signals. this bit will dynamically indicate the presence of the tx lpi signal.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 183 revision 1.0 port 1 eee control/status and auto - negotiation expansion register (0x0e4 ? 0x0e5): p1eeecs (continue d) bit default r/w description 11 0 ro/lh (latching high) rx lpi received 1 = indicates that the receive pcs has received low power idle (lpi) signaling one or more times since the register was last read. 0 = indicates that the pcs has not received low power idle (lpi) signaling. the status will be latched high and stay that way until cleared. to clear this status bit, a ?1? needs to be written to this register bit. 10 0 ro rx lpi indication 1 = indicates that the receive pcs is currently receiving low power idle (lpi) signals. 0 = indicates that the pcs is not currently receiving low power idle (lpi) signals. this bit will dynamically indicate the presence of the rx lpi signal. 9 ? 8 0 0 rw reserved 7 0 ro reserved 6 1 ro received next page location able 1 = received next page storag e location is specified by bit [6:5]. 0 = received next page storage l ocation is not specified by bit[ 6:5]. 5 1 ro received next page storage location 1 = link p artner next pages are stored in p1alprnp (reg. 0x0de ? 0x0df). 0 = link p artner next pages are stored in p1anlpr (reg. 0x056 ? 0x057). 4 0 ro/lh (latching high) parallel detection fault 1 = a fault h as been detected via the parallel d etection function. 0 = a fault has not been detected via the parallel d etection function. this bit is cleared after read. 3 0 ro link partner next page able 1 = link p artner is next page able d. 0 = link p artner is not next page able d. 2 0 ro next page able 1 = local d evice is next page able d. 0 = local d evice is not next page able d. 1 0 ro/lh (latching high) page received 1 = a new page has been received . 0 = a new page has not been received . 0 0 ro link partner auto - negotiation able 1 = link p artner is auto - negotiation able d. 0 = link p artner is not auto - negotiation able d.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 184 revision 1.0 port 1 lpi recovery time counter register port 1 lpi recovery time counter register (0x0e6): p1lpirtc this register contains the port 1 lpi recovery time counter information. bit default value r/w description 7 ? 0 0x27 (25s) rw port 1 lpi recovery time counter this register specifies the time that the mac device has to wait before it can start to send out packets. this value should be the maximum of the lpi recovery time between local device and remote device. each count is 640 ns. buffer load -to- lpi control 1 register buffer load to lpi control 1 register (0x0e7): bl2lpic1 this register contains the buffer load to lpi control 1 information. bit default value r/w description 7 0 rw lpi terminated by input traffic enable 1 = lpi request will be stopped if input traffic is detected. 0 = lpi request won?t be stopped by input traffic. 6 0 ro reserved 5 ? 0 0x08 rw buffer load threshold for source port lpi termination this value defines the maximum buffer usage allowed for a single port before it starts to trigger the lpi termination for the specific source port . (512 bytes per unit )
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 185 revision 1.0 port 2 auto - negotiation registers port 2 auto - negotiation next page transmit register (0x0e8 ? 0x0e9): p2anpt t his register contains the port 2 auto - negotiation next p age t ransmit related bits . bit default r/w description 15 0 r o next page next page (np) is used by the next page function to indicate whether or not this is the last next page to be transmitted. np shall be set as follows: 1 = a dditional next page(s) will follow. 0 = l ast page. 14 0 ro reserved 13 1 r o message page message page (mp) is used by the next page function to differentiate a message page from an unformatted page. mp shall be set as follows: 1 = message page . 0 = unformatted page . 12 0 r o acknowledge 2 ackno wledge 2 (ack2) is used by the next p age function to indicate that a device has the ability to comply wit h the message. ack2 shall be set as follows: 1 = able to comply with message. 0 = unable to comply with message. 11 0 ro toggle toggle (t) is used by the a rbitration function to e nsure synchronization with the link partner during n ext p age exchange. this bit shall always take the opposite value of the toggle bit in the previously exchanged link codeword. the initial value of the toggle bit in the first next page tr ansmitted is the inverse of bit [ 11 ] in the base link codeword and, therefore, may assume a v alue of logic one o r zero. the toggle bit shall be set as follows: 1 = p revious value of the transmitted link codeword equal to logic zero. 0 = p revious value of the transmitted link codeword equal to logic one. 10 ? 0 0x001 r o message and unformatted co de field mes sage/unformatted code field bit [10:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 186 revision 1.0 port 2 auto - negotiation link partner received next page register (0x0ea ? 0x0eb): p2alprnp t his register contains the port 2 auto - negotiation link partner received next p age related bits . bit default r/w description 15 0 ro next page next page (np) is used by the next page function to indicate whether or not this is the last next page to be transmitted. np shall be set as follows: 1 = a dditional next page(s) will follow. 0 = l ast page. 14 0 ro acknowledge acknowledge (ack) is used by the auto - negotiation function to indicate that a device has successfully received its link partner?s link codeword. the acknowledge b it is encoded in bit [ 14 ] regardless of the value of the selector field or link co deword encoding. if no next page information is to be sent, this bit shall be set to logic one in the link codeword after the reception of at least three consecutive and consistent flp bursts (ignoring the acknowledge bit value). 13 0 ro message page mes sage page (mp) is used by the next page function to differentiate a message page from an unformatted page. mp shall be set as follows: 1 = message page . 0 = unformatted page . 12 0 ro acknowledge 2 ackno wledge 2 (ack2) is used by the next p age function to indicate that a device has the ability to comply with the message. ack2 shall be set as follows: 1 = able to comply with message. 0 = unable to comply with message. 11 0 ro toggle toggle (t) is used by the a rbitration function to e nsure synchronization with the link partner during n ext p age exchange. this bit shall always take the opposite value of the toggle bit in the previously exchanged link codeword. the initial value of the toggle bit in the first next page tr ansmitted is the inverse of bit [ 11 ] in the base link codeword and, therefore, may assume a value of logic one o r zero. the toggle bit shall be set as follows: 1 = p revious value of the transmitted link codeword equal to logic zero. 0 = p revious value of the transmitted link codeword equal to lo gic one. 10 ? 0 0x000 ro message and unformatted code field mes sage/unformatted code field bit [10:0]
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 187 revision 1.0 port 2 eee registers port 2 eee and link partner advertisement register (0x0ec ? 0x0ed): p2eeea this register contains the port 2 eee advertisement and link partner advertisement information. note that eee is not supported in fiber mode. note that eee is not supported in fiber mode. bit default r/w description 15 0 ro reserved 14 0 ro 10gbase - kr eee 1 = link partner eee is sup port ed for 10gbase - kr. 0 = link partner eee is not sup port ed for 10gbase - kr. 13 0 ro 10gbase - kx4 eee 1 = link partner eee is sup port ed for 10gbase - kx4. 0 = link partner eee is not sup port ed for 10gbase - kx4. 12 0 ro 1000base - kx eee 1 = link partner eee is sup port ed for 1000base - kx. 0 = link partner eee is not sup port ed for 1000base - kx. 11 0 ro 10gbase - t eee 1 = link partner eee is sup port ed for 10gbase -t. 0 = link partner eee is not sup port ed for 10gbase - t. 10 0 ro 1000base - t eee 1 = link partner eee is sup port ed for 1000base -t. 0 = link partner eee is not sup port ed for 1000base - t. 9 0 ro 100base - tx eee 1 = link partner eee is sup port ed for 100base - tx. 0 = link partner eee is not sup port ed for 100base - tx. 8 ? 7 0 0 ro reserved 6 0 ro 10gbase - kr eee 1 = port 2 eee is sup port ed for 10gbase - kr. 0 = port 2 eee is not sup port ed for 10gbase - kr. 5 0 ro 10gbase - kx4 eee 1 = port 2 eee is sup port ed for 10gbase - kx4. 0 = port 2 eee is not sup port ed for 10gbase - kx4. 4 0 ro 1000base - kx eee 1 = port 2 eee is sup port ed for 1000base - kx. 0 = port 2 eee is not sup port ed for 1000base - kx. 3 0 ro 10gbase - t eee 1 = port 2 eee is sup port ed for 10gbase -t. 0 = port 2 eee is not sup port ed for 10gbase - t.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 188 revision 1.0 port 2 eee and link partner advertisement register (0x0ec ? 0x0ed): p2eeea (continued) bit default r/w description 2 0 ro 1000base - t eee 1 = port 2 eee is sup port ed for 1000base -t. 0 = port 2 eee is not sup port ed for 1000base - t. 1 1 rw 100base - tx eee 1 = port 2 eee is sup port ed for 100base - tx. 0 = port 2 eee is not sup port ed for 100base - tx. to disable eee capability, clear the port 2 next page enable bit in the pcseeec register (0x0f3). 0 0 ro reserved port 2 eee wake error count register (0x0ee ? 0x0e f): p2eeewec this register contains the port 2 eee wake error count information. note that eee is not supported in fiber mode . bit default value r/w description 15 ? 0 0x0000 rw port 2 eee wake error count this counter is incremented by each transition of lpi_wake_timer_done fr om false to true. it means the w ake - up time is longer than 20.5 s. the value will be held at all ones in the case of overflow and will be cleared to zero after this register is read. port 2 eee control/status and auto - negotiation expansion register (0x0f0 ? 0x0f1): p2eeecs this register contains the port 2 eee control/status and auto - negotiation expansion information. note that eee is not supported in fiber mode . bit default r/w descriptio n 15 1 rw reserved 14 0 ro hardware 100bt eee enable status 1 = 100bt eee is enabled by hardware based np exchange . 0 = 100bt eee is disabled . 13 0 ro/lh (latching high) tx lpi received 1 = indicates that the transmit pcs has received low power idle (lpi) signaling one or more times since the register was last read. 0 = indicates that the pcs has not received low power idle (lpi) signaling. the status will be latched high and stay that way until cleared. to clear this status bit, a ?1? needs to be written to this register bit. 12 0 ro tx lpi indication 1 = indicates that the transmit pcs is currently receiving low power idle (lpi) signals. 0 = indicates that the pcs is not currently receiving low power idle (lpi) signals. this bit will dynamically indicate the presence of the tx lpi signal.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 189 revision 1.0 port 2 eee control/status and auto - negotiation expansion register (0x0f0 ? 0x0f1): p2eeecs (continue d) bit default r/w description 11 0 ro/lh (latching high) rx lpi received 1 = indicates that the receive pcs has received low power idle (lpi) signaling one or more times since the register was last read. 0 = indicates that the pcs has not received low power idle (lpi) signaling. the status will be latched high and stay that way until cleared. to clear this status bit, a ?1? needs to be written to this register bit. 10 0 ro rx lpi indication 1 = indicates that the receive pcs is currently receiving low power idle (lpi) signals. 0 = indicates that the pcs is not currently receiving low power idle (lpi) signals. this bit will dynamically indicate the presence of the rx lpi signal. 9 ? 8 0 0 rw reserved 7 0 ro reserved 6 1 ro received next page location able 1 = received next page storag e location is specified by bit [6:5]. 0 = received next page storage l ocation is not specified by bit [6:5]. 5 1 ro received next page storage location 1 = link p artner next pages are stored in p2alprnp (reg. 0x0ea ? 0x0eb). 0 = link p artner next pages are stored in p2anlpr (reg. 0x062 ? 0x063). 4 0 ro/lh (latching high) parallel detection fault 1 = a fault h as been detected via the parallel d etection function. 0 = a fault has not been detected via the parallel d etection function. this bit is cleared after read. 3 0 ro link partner next page able 1 = link p artner is next page able d. 0 = link p artner is not next page able d. 2 1 ro next page able 1 = local d evice is next page able d. 0 = local d evice is not next page able d. 1 0 ro/lh (latching high) page received 1 = a new page has been received . 0 = a new page has not been received . 0 0 ro link partner auto - negotiation able 1 = link p artner is auto - negotiation able d. 0 = link p artner is not auto - negotiation able d.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 190 revision 1.0 port 2 lpi recovery time counter register port 2 lpi recovery time counter register (0x0f2): p2lpirtc this register contains the port 2 lpi recovery time counter information. bit default value r/w description 7 ? 0 0x27 (25us) rw port 2 lpi recovery time counter this register specifies the time that the mac device has to wait before it can start to send out packets. this value should be the maximum of the lpi recovery time between local device and remote device. each count is 640 ns. pcs eee control register pcs eee control register (0x0f3): pcseeec this register contains the pcs eee control information. bit default r/w description 7 0 rw reserved 6 0 rw r eserved 5 ? 2 0x0 ro reserved 1 1 rw port 2 next page enable 1 = enable next page exchange during auto - negotiation. 0 = skip next page exchange during auto - negotiation. auto - negotiation uses next page to negotiate eee. to disable eee auto- negotiation on port 2, clear this bit to zero. restarting auto - negotiation may then be required. 0 1 rw port 1 next page enable 1 = enable next page exchange during auto - negotiation. 0 = skip next page exchange during auto - negotiation. auto - negotiation uses next page to negotiate eee. to disable eee auto- negotiation on port 1, clear this bit to zero. restarting auto - negotiation may then be required. empty txq -to- lpi wait time control register empty txq to lpi wait time control register (0x0f4 ? 0x0f5): etlwtc this register contains the empty txq to lpi wait time control information. bit default value r/w description 15 ? 0 0x03e8 rw empty txq to lpi wait time control this register specifies the time that the lpi request will be generated after a txq has been empty exceeds this configured time. this is only valid when eee 100bt is enabled. this setting will apply to all the three port s . the unit is 1.3 ms. the default va lue is 1.3 seconds (range from 1.3 ms to 86 second s )
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 191 revision 1.0 buffer load -to- lpi control 2 register buffer load to lpi control 2 register (0x0f6 ? 0x0f7): bl2lpic2 this register contains the buffer load to lpi control 2 information. bit default value r/w description 15 ? 8 0x01 ro reserved 7 ? 0 0x40 rw buffer load threshold for all port s lpi termination this value defines the maximum buffer usage allowed for a single port before it starts to trigger the lpi termination for every port . (128 bytes per unit ) 0x0f8 ? 0x0ff: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 192 revision 1.0 internal i/o register space mapping for interrupts and global reset (0x100 ? 0x1ff) 0x100 ? 0x123: reserved memory bist info register (0x124 ? 0x125): mbir this register indicates the built - in self - test results for both tx and rx memories after power - up/reset. the device should be reset after the bist procedure to ensure proper subsequent operation. bit default value r/w description 15 0 ro memory bist done 0 = bist in progress 1 = bist done 14 ? 13 00 ro reserved . 12 ? ro txmbf tx memory bist completed 0 = tx memory built - in self - test has not completed. 1 = tx memory built - in self - test has completed. 11 ? ro txmbfa tx memory bist failed 0 = tx memory built - in self - test has completed without failure. 1 = tx memory built - in self - test has completed with failure. 10 ? 8 ? ro txmbfc tx memory bist fail count 0 = tx memory built - in self - test completed with no count failure. 1 = tx memory built - in self - test encountered a failed count condition. 7 ? 5 ? r o reserved . 4 ? ro rxmbf rx memory bist completed 0 = completion has not occurred for the rx memory built - in self - test. 1 = indicates completion of the rx memory built - in self - test . 3 ? ro rxmbfa rx memory bist failed 0 = no failure with the rx memory built - in self - test . 1 = indicates the rx memory built - in self - test has failed. 2 ? 0 ? ro rxmbfc rx memory bist test fail count 0 = no count failure for the rx memory bist. 1 = indicates the rx memory built ? in self - test failed count.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 193 revision 1.0 global reset register (0x126 ? 0x127): grr this register controls the global and ptp reset functions with information programmed by the cpu. bit default value r/w description 15 ? 4 0x000 ro reserved . 3 0 rw memory bist start 1 = setting this bit will start the memory bist. 0 = setting this bit will stop the memory bist. 2 0 rw ptp module soft reset 1 = setting this bit resets the 1588/ptp blocks including the timestamp input u nit s, the trigger output units and the ptp clock. 0 = software reset is inactive. 1 0 ro reserved . 0 0 rw global soft reset 1 = software reset is active. 0 = software reset is inactive. global software reset will reset all registers to their default value. the strap?in values are not affected. this bit is not self - clearing . after writing a ?1? to this bit, wait for 10ms to elapse then write a ?0? for normal operation. 0x128 ? 0x18f: reserved interrupt enable register (0x190 ? 0x191): ier this register either enables various interrupts or indicates that the interrupts have been enabled. bit default value r/w description 15 0 rw lcie link change interrupt enable 1 = when this bit is set, the link change interrupt is enabled. 0 = when this bit is reset, the link change interrupt is disabled. 14 ? 13 00 ro reserved 12 0 ro ptp timestamp interrupt enable 1 = when set, this bit indicates that the ptp timestamp interrupt is enabled. 0 = when cleared, this bit indicates that the ptp timestamp interrupt is disabled. note that this bit is an ?or? of the ptp_ts_ ie[11:0] bits. clearing the appropriate enable bit in the ptp_ts_ie register (0x68e ? 0x68f) or clearing the appropriate status bit in the ptp_ts_is register (0x68c ? 0x68d) will clear this bit. always write this bit as a zero. 11 0 ro reserved 10 0 ro ptp trigger unit interrupt enable 1 = when set, this bit indicates that the ptp trigger output unit interrupt is enabled. 0 = when cleared, this bit indicates that the ptp trigger output unit interrupt is disabled. note that this bit is an ?or? of the ptp_ trig_ie[11:0] bits. clearing the appropriate enable bit in the ptp_trig_ie register (0x68a ? 0x68b) or clearing the appropriate status bit in the ptp_trig_is register (0x688 ? 0x689) will clear this bit. always write this bit as a zero. 9 ? 4 0x00 ro reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 194 revision 1.0 interrupt enable register (0x190 ? 0x191): ier (continued) bit default value r/w description 3 0 rw ldie linkup detect interrupt enable 1 = when this bit is set, the wake - up from a link up detect interrupt is enabled. 0 = when this bit is reset, the link up detect interrupt is disabled. 2 0 rw edie energy detect interrupt enable 1 = when this bit is set, the wake - up from energy detect interrupt is enabled. 0 = when this bit is reset, the energy detect interrupt is disabled. 1 0 ro reserve d . 0 0 ro reserved interrupt status register (0x192 ? 0x193): isr this register contains the status bits for all interrupt sources. when the corresponding enable bit is set, it causes th e interrupt pin to be asserted. this register is usually read by the host cpu and device drivers during an interrupt service routine or polling. th e register bits are not cleared when read. to clear the bits, the user has to either write a ?1? to a specific bit to clear it, or write a ?1? to another bit in another speci fied register to clear it. bit default value r/w description 15 0 ro (w1c) lcis link change interrupt status when this bit is set, it indicates that the link status has changed from link up to link down, or link down to link up. this edge - triggered interrupt status is cleared by writing a ?1? to this bit. 14 ? 13 00 ro reserved 12 0 ro ptp timestamp interrupt status when this bit is set, it indicates that one of 12 timestamp input units is ready (ts_rdy = ?1?) and an event has been captured , or the egress timestamp is available from either port 1 or port 2. this edge - triggered interrupt status is cleared by writing a ?1 ? to this bit. 11 0 ro reserved 10 0 ro ptp trigger unit interrupt status when this bit is set, it indicates that one of 12 trigger output units is done or has an error. this edge - triggered interrupt status is cleared by writing a ?1? to this bit. 9 ? 4 0x 0 0 ro reserved 3 0 ro ldis linkup detect interrupt status when this bit is set, it indicates that wake -up from linkup detect status has occurred. write 0010 to pmctrl[5:2] to clear this bit. 2 0 ro edis energy detect interrupt status when this bit is set , it indicates that wake - up from energy detect status has occurred. write 0001 to pmctrl[5:2] to clear th is bit. 1 ? 0 00 ro reserved 0x194 ? 0x1ff: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 195 revision 1.0 internal i/o register space mapping for trigger output unit s (12 unit s, 0x200 ? 0x3ff) trigger error register (0x200 ? 0x201): trig_err this register contains the trigger output unit error status. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 ro trigger output unit error 1 = the trigger time is set earlier than the system time clock when trig_notify bit is set to ?1? in trig_cfg1 register and it will generate interrupt to host if interrupt enable bit is set in ptp_trig_ie register. this bit can be cleared by resetting the trig_en bit to ?0?. 0 = no trigger output unit error. t here are 12 trigger output units and therefore there is a corresponding error bit for each of the trigger output units , bit [11:0] = unit [12:1]. trigger active register (0x202 ? 0x203): trig_active this register contains the trigger output unit active s tatus. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 ro trigger output unit active 1 = the trigger output unit is enabled and active without error. 0 = the trigger output unit is finished and inactive. there are 12 trigger output units and therefore there is a corresponding active bit for each of the trigger output units, bit[ 11:0] = unit [12:1]. trigger done register (0x204 ? 0x205): trig_done this register contains the trigger output unit event done status. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 ro (w1c) trigger output unit event done 1 = the trigger output unit event has been generated when trig_notify bit is set to ?1? in trig_cfg1 register (write ?1? to clear this bit) and it will generate interrupt to host if interrupt enable bit is set in ptp_trig_ie register. 0 = the trigger output unit event is not generated. there are 12 trigger output unit s and therefore there is a corresponding done bit for each of the trigger output units , bit [11:0] = unit [12:1].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 196 revision 1.0 trigger enable register (0x206 ? 0x207): trig_en this register contains the trigger output unit enable control bits. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 rw trigger output unit enable 1 = enables the selected trigger output unit and will self - clear when the trigger output is generated. in cascade mode, only enable the head of trigger unit . 0 = the trigger output unit is disabled. there are 12 trigger output units and therefore there is a corresponding enable bit for each of the trigger output units , bit [ 11:0] = unit [12:1]. trigger software reset register (0x208 ? 0x209): trig_sw_rst this register contains the software reset bits for the trigger output units . bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 rw /sc trigger output unit software reset 1 = when set, the selected trigger output unit is put into the inactive state and default setting. this can be used to stop the cascade mode in continuous operation and prepare the selected trigger unit for the next operation. 0 = while zero, the selected trigger output unit is in normal operating mode. there are 12 trigger output units and therefore there is a corresponding software reset bit for each of the trigger output units , bit [11:0] = unit [12:1]. trigger output unit 12 output pps pulse - width register (0x20a ? 0x20b): trig12_pps_width this register contains the trigger output unit 12 pps pulse width and trigger output unit 1 path delay compensation. bit default r/w description 15 ? 12 0x0 ro reserved 11 0 rw reserved 10 ? 8 000 rw path delay compensation for trigger output unit 1 these three bits are used to compensate the path delay of clock skew for event trigger output unit 1 in the range of 0 ~ 7 ns ( bit [11] = ?1?) or 0 ~ 28 ns ( bit [11] = ?0?). 7 ? 0 0x00 rw pps pulse width for trigger output unit 12 this is upper third byte [23:16] in conjunction with the unit 12 trigger output pulse width in trig12_cfg_2[15:0] (0x38a) register to make this register valu e for pps pulse width up to 134 ms. 0x20c ? 0x21f: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 197 revision 1.0 trigger output unit 1 target time in nanosecond s low - word register (0x220 ? 0x221): trig1_tgt_nsl this register contains the trigger output unit 1 target time in nanoseconds low - word. bit default r/w description 15 ? 0 0x0000 rw trigger output unit 1target time in nanoseconds low - word [15:0] this is low - word of target time for trigger output unit 1 in nanoseconds. trigger output unit 1 target time in nanosecond s high - word register (0x222 ? 0x223): trig1_tgt_nsh this register contains the trigger output unit 1 target time in nanoseconds high - word. bit default r/w description 15 ? 14 00 ro reserved 13 ? 0 0x0000 rw trigger output unit 1target time in nanoseconds high - word [29:16] this is high - word of target time for trigger output unit 1 in nanoseconds. trigger output unit 1 target time in second s low - word register (0x224 ? 0x225): trig1_tgt_sl this register contains the trigger output unit 1 target time in seconds low - word. bit default r/w description 15 ? 0 0x0000 rw trigger output unit 1target time in seconds low - word [15:0] this is low - word of target time for trigger output unit 1 in seconds. trigger output unit 1 target time in second s high - word register (0x226 ? 0x227): trig1_tgt_sh this register contains the trigger output unit 1 target time in seconds high - word. bit default r/w description 15 ? 0 0x0000 rw trigger output unit 1 target time in seconds high - word [31:16] this is high - word of target time for trigger output unit 1 in seconds. trigger output unit 1 configuration and control register 1 (0x228 ? 0x229): trig1_cfg_1 this register (1 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 0 rw enable this trigger output unit in cascade mode 1 = enable this trigger output unit in cascade mode. 0 = disable this trigger output unit in cascade mode. 14 0 rw indicate a tail unit for this trigger output unit in cascade mode 1 = this trigger output unit is the last unit of the chain in cascade mode. 0 = this trigger output unit is not the last unit of a chain in cascade mode. note : when this bit is set ?0? in all cfg_1 trigger units , and all units are in cascade mode, the iteration count is ignored and it becomes infinite. to stop the infinite loop , set the respective bit [11:0] in trig_sw_rst register.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 198 revision 1.0 trigger output unit 1 configuration and control register 1 (0x228 ? 0x229): trig1_cfg_1 (continued) bit default r/w description 13 ? 10 0xf rw select upstream trigger unit in cascade mode these bits are used to select one of the 12 upstream trigger output units in cascade mode. note that 0x0 indicates tou1, and 0xb indicates tou 12. (0xc to 0xf are not used.) for example, if unit s 1, 2 and 3 (tail unit ) are set up in cascade mode, then these 4 bits are set as follows at the three trigger output units : unit 1 is set to 0x2 (indicates tou3) , at unit 2 is set to 0x0 (indicates tou1) and at unit 3 is to set 0x1 (indicates tou2) . 9 0 rw trigger now 1 = immediately create the trigger output if the trigger target time is less than the system time clock. 0 = wait for the trigger target time to occur to trigger the event output. 8 0 rw trigger notify 1 = e nable reporting both trig_done and trig_err status as well as interrupt to host if the interrupt enable bit is set in the trig_ie register. 0 = d isable reporting both trig_done and trig_err status. 7 0 ro reserved 6 ? 4 000 rw trigger ou t put signal pattern this field is used to select the trigger output signal pattern when trig_en = ?1? and trigger target ti me has reached the system time: 000: trig_neg_edge - generates negative edge (from default ?h? - > ?l? and stays ?l?). 001: trig_pos_edge - generate s positive edge (from default ?l? - > ?h? and stays ?h?). 010: trig_neg_pulse - generates negative pulse (from default ?h? - > ?l? pulse - > ?h? and stays ?h?). the pulse width is defined in trig1_cfg_2 register. 011: trig_pos_pulse - gen erates positive pulse (from default ?l? - > ?h? pulse - > ?l? and stays ?l)?. the pulse width is defined in trig1_cfg_2 register. 100: trig_neg_cycle - generates negative periodic signal. the ?l? pulse width is defined in trig1_cfg_2 reg ister, the cycle width is defined in trig1_cfg_3/4 registers and the number of cycles is defined in trig1_cfg_5 register (it is an infinite number if this register value is zero). 101: trig_pos_cycle - generates positive periodic signal . the ?h? pulse width is defined in trig1_cfg_2 register, the cycle width is defined in trig1_cfg_3/4 registers and the number of cycles is defined in trig1_cfg_5 register (it is an infinite number if this register value is ze ro). 110: trig_reg_output - generates an output signal from a 16 - bit register. this 16 - bit register bit - pattern in trig1_cfg_6 is shifted lsb bit first and looped, each bit width is defined in trig1_cfg_3/4 registers and total number of bits to shift out is defined in trig1_cfg_5 register (it is an infinite number if this register value is zero). 111: reserved note : the maximum outpu t clock frequency is up to 12.5 mhz. 3 ? 0 0x0 rw select gpio[11:0] for this trigger output unit a ssociate one of the 12 gpio pins to this trigger output unit . the trigger output signals are or?ed together to form a combined signal if multiple trigger output units have selected the same gpio output pin. 0x0 indicates gpio0 , and 0xb indicates gpio11 . ( 0xc to 0xf are not used . )
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 199 revision 1.0 trigger output unit 1 configuration and control register 2 (0x22a ? 0x22b): trig1_cfg_2 this register (2 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output pulse width this number defines the width of the generated pulse or periodic signal from this trigger output unit . its unit value is equal to 8 ns. for example, the pulse width is 80 ns if this register value is 1 0 (0xa). iteration count this number defines the iteration count for register trigger output pattern (trig1_cfg_6) in cascade mode when this trigger output unit is the tail unit . for example, 0x0000 = 1 count and 0x000f = 16 counts. it is an infinite number if there is no tail unit in cascade mode. trigger output unit 1 configuration and control register 3 (0x22c ? 0x22d): trig1_cfg_3 this register (3 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output cycle width or bit width low - word [15:0] to define cycle width for generating periodic signal or to define each bit width in trig1_cfg_8. a unit number of value equals to 1 ns. for example, the cycle or bit width is 80 ns if this register value is 80 (0x50) and next register value = 0x0000. trigger output unit 1 configuration and control register 4 (0x22e ? 0x22f): trig1_cfg_4 this register (4 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output cycle width o r bit width high - word [31:16] this number defines the cycle width when generating periodic signals using this trigger output unit . also, it is used to define each bit width in trig1 _cfg_8. each unit is equal to 1 ns. trigger output unit 1 configuration and control register 5 (0x230 ? 0x231): trig1_cfg_5 this register (5 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output cycle count this number defines the quantity of cycles of the periodic signal output by the trigger output unit . use a value of zero for infinite repetition. valid for trig_neg_cycle and trig_pos_cycle modes. bit count this number can define the number of bits that are output when generating output signals from the bit patt ern register . it is an infinite number if this register value is zero. valid for trig_reg_output mode.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 200 revision 1.0 trigger output unit 1 configuration and control register 6 (0x232 ? 0x233): trig1_cfg_6 this register (6 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output unit bit pattern t his register is used to define the output bit pattern when the trig_reg_output mode is selected . iteration count this register is used as the iteration count for the trigger output unit when the tail unit is in cascade mode but not using register mode. it is the number of cycles programmed in cfg_5 to be output by the trigger output unit . for example, 0x0000 =1 count , 0x000f =16 counts. an infinite number of cycles will occur if there is no tail unit in cascade mode. trigger output unit 1 configuration and control register 7 (0x234 ? 0x235): trig1_cfg_7 this register (7 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output iteration cycle time in cascade mode low - word [15:0] the value in this pair of registers defines the iteration cycle time for the trigger output unit in cascade mode. this value will be added to the current trigger target time for establishing the next trigger time for the trigger output unit . a unit number of value equals to 1 ns. for example, the cycle is 800 ns if this register value is 800 (0x320) and next register value = 0x0000. the iteration count (cfg_6) trigger output cycle count (cfg_5) x waveform cycle time must be less than the iteration cycle time specified in cfg_7 and cfg_8. trigger output unit 1 configuration and control register 8 (0x236 ? 0x237): trig1_cfg_8 this register (8 of 8) contains the trigger output unit 1 configuration and control bits. bit default r/w description 15 ? 0 0x0000 rw trigger output iteration cycle time in cascade mode high - word [31:16] the value in this pair of registers defines the iteration cycle time for the trigger output unit in cascade mode. this value will be added to the current trigger target time for establishing the next trigger time for the trigger output unit . a unit number of value equals 1 ns. 0x238 ? 0x23f: reserved trigger output unit 2 target time and output configuration/control registers (0x240 ? 0x257) these 12 registers contain the trigger output unit 2 target time and configuration/control bits, trig2_cfg_[ 1:8]. see descriptions in the trigger output unit 1 registers (0x220 ? 0x237) . note that there is one bit that is different in this set of register bits. it is indicated in the following text.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 201 revision 1.0 trigger output unit 2 configurat ion and control register 1 (0 x248 ? 0x249): trig2 _cfg_1 this register contains the trigger output unit 2 configuration and control bits. bit default r/w description 7 0 rw trigger unit 2 clock edge output select this bit is used to select either the positive e dge or negative edge of the 125 mhz to clock out the trigger unit 2 output. this bit only pertains to usage with gpio1 pin. this bit will not function with any other gpio pin. 1 = use negative edge of 125 mhz clock to clock out data 0 = use posi tive edge of 125 mhz clock to clock out data 0x258 ? 0x25f: reserved trigger output unit 3 target time and output configuration/control registers (0x260 ? 0x277) these 12 registers contain the trigger output unit 3 target time and configuration/control bits, trig3_cfg_[ 1:8]. see descriptions in the trigger output unit 1 registers (0x220 ? 0x237). 0x278 ? 0x27f: reserved trigger output unit 4 target time and output configuration/co ntrol registers (0x280 ? 0x297) these 12 registers contain the trigger output unit 4 targe t time and configuration/control bits, trig4_cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0x220 ? 0x237). 0x298 ? 0x29f: reserved trigger output unit 5 target time and output configuration/control registers (0x2a0 ? 0x2b7) these 12 registers contain the trigger output unit 5 target time and configuration/control bits, trig5 _ cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0x220 ? 0x237 ). 0x2b8 ? 0x2bf: reserved trigger output unit 6 target time and output configuration/control registers (0x2c0 ? 0x2d7) these 12 registers contain the trigger output unit 6 target time and configuration/control bits, trig6 _ cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0x220 ? 0x2 37). 0x2d8 ? 0x2df: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 202 revision 1.0 trigger output unit 7 target time and output configuration/control registers (0x2e0 ? 0x2f7) these 12 registers contain the trigger output unit 7 target time and configuration/control bits, trig7 _ cfg_[ 1:8]. see descriptions in the trigger output unit 1 registers (0 x220 ? 0x237). 0x2f8 ? 0x2ff: reserved trigger output unit 8 target time and output configuration/control registers (0x300 ? 0x317) these 12 registers contain the trigger output u nit 8 targe t time and configuration/control bits, trig8 _ cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0 x220 ? 0x237). 0x318 ? 0x31f: reserved trigger output unit 9 target time and output configuration/control registers (0x320 ? 0x337) these 12 registers contain the trigger output unit 9 target time and configuration/control bits, trig9 _ cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0x22 0 ? 0x237). 0x338 ? 0x33f: reserved trigger output unit 10 target time and outp ut configuration/control registers (0x340 ? 0x357) these 12 registers contain the trigger output unit 10 target time and configuration/control bits, trig10 _ cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0x220 ? 0x237). 0x358 ? 0x35f: reserved trigger output unit 11 target time and output configuration/control registers (0x360 ? 0x377) these 12 registers contain the trigger output unit 11 target time and configuration/control bits, trig11 _ cfg_[1:8]. see descriptions in the trigger output unit 1 registers ( 0x220 ? 0x237). 0x378 ? 0x37f: reserved trigger output unit 12 target time and output configuration/control registers (0x380 ? 0x397) these 12 registers contain the trigger output unit 12 target time and configuration /control bits, trig12 _cfg_[1:8]. see descriptions in the trigger output unit 1 registers (0x 220 ? 0x237). 0x398 ? 0x3ff: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 203 revision 1.0 internal i/o register space mapping for ptp timestamp inputs (12 unit s, 0x400 ? 0x5ff ) timestamp ready register (0x400 ? 0x401): ts_rdy this register contains the ptp timestamp input unit ready - to - read status bits. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 ro timestamp input unit ready 1 = this timestamp input unit is ready to read and will generate a timestamp interrupt if ptp_ts_ie = ?1?. this bit will clear when ts_en is disabled. 0 = this timestamp input unit is not ready to read or disabled. there are 12 timestamp units and therefore there is a correspond ing timestamp input ready bit for each of the timestamp units , bit [ 11:0] = unit [12:1]. timestamp enable register (0x402 ? 0x403): ts_en this register contains the ptp timestamp input unit enable control bits. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 rw timestamp input unit enable 1 = enable the selected timestamp input unit. writing a ? 1? to this bit will clear the ts[12:1]_event_det_cnt. 0 = disable the selected timestamp input unit . writing a ?0? to this bit will clear the ts _rdy and ts[12:1]_det_cnt_ovfl. there are 12 timestamp units and therefore there is a corresponding timestamp input unit enable bit for each of the timestamp units , bit [ 11:0] = unit [12:1]. timestamp software reset register (0x404 ? 0x405): ts_sw_rst this register contains the ptp timestamp input unit software reset control bits. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 rw /sc timestamp input unit software reset 1 = reset the selected timestamp input unit to inactive state and default setting. 0 = the selected timestamp input unit is in normal mode of operation. there are 12 timestamp units and therefore there is a corresponding timestamp input unit software reset bit for each of the timestamp units , bit [ 11:0] = unit [1 2:1]. 0x406 ? 0x41f: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 204 revision 1.0 timestamp unit 1 status register (0x420 ? 0x421): ts1_status this register contains ptp timestamp input unit 1 status. bit default r/w description 15 ? 5 0x000 ro reserved 4 ? 1 0x0 ro number of detected event count for timestamp input unit 1 (ts1_event_det_cnt) this field is used to report the number of detected events (either rising or falling edge) count. in single mode, it can detect up to 15 events in any single timestamp input unit . in c ascade mode, it can detect up to two events in timestamp input units 1 - 11 or up to 8 events at timestamp input unit 12 as a non - tail unit , and it can detect up to 15 events for any timestamp input unit as a tail unit . pulses or edges can be detected up to 25 mhz. the pulse width can be measured by the difference between consecutive timestamps in the same timestamp input unit . 0 0 ro number of detected event count overflow for timestamp input unit 1 (ts1_det_cnt_ovfl) 1 = the number of detected event (either rising or falling edge) count has overflow ed. in cascade mode, only tail unit will set this bit when overflow is occurred. the ts1_event_det_cnt will stay at 15 when overflow is occurred. 0 = the nu mber of events (either rising or falling edge) detected count has not overflowed. timestamp unit 1 configuration and control register (0x422 ? 0x423): ts1_cfg this register contains ptp timestamp input unit 1 configuration and control bits. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 8 0x0 rw select gpio[11:0] for timestamp unit 1 this field is used to select one of the 12 gpio pins to serve this timestamp unit . it is gpio0 if these bits = ?0000? and it is gpio11 if these bits = ?1011? (from ?1100? to ?1111? are not used). 7 0 rw enable rising edge detection 1 = enable rising edge detection. 0 = disable rising edge detection. 6 0 rw enable falling edge detection 1 = enable falling edge detection. 0 = disable falling edge detection. 5 0 rw select tail unit for this timestamp unit in cascade mode 1 = this timesta mp unit is the last unit of the chain in cascade mode. 0 = this timestam p unit is not the la st unit of the chain in cascade mode. 4 ? 1 0x0 rw select upstream timestamp done uni t in cascade mode this is used to select one of the 12 upstream timestamps units for done input in cascade mode. for example, if units 1 (head unit ), 2 and 3 (tail unit ) are set up in cascade mode, then these 4 - bits at unit 1 are set to 0x0, at unit 2 are set to 0x1, at unit 3 are set to 0x2. 0 0 rw enable this timestamp unit in cascade mode 1 = enable the selected timestamp input unit in cascade mode . 0 = disable the timestamp input unit in cascade mode.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 205 revision 1.0 timestamp unit 1 input 1st sample time in nanoseconds low - w ord register (0x424 ? 0x425): ts1_smpl1_nsl this register contains the first sample time in nanoseconds low - word (the resolution of 40 ns) for ptp timestamp unit 1. bit default r/w description 15 ? 0 0x0000 ro 1 st sample time in ns low - word [15:0] timestamp unit 1 this is the low - word of first sample time for timestamp unit 1 in nanoseconds. timestamp unit 1 input 1st sample time in nanosecond s high - word register (0x426 ? 0x427): ts1_smpl1_nsh this register contains the first sample time in nanoseconds high - word a nd edge detection status for ptp timestamp unit 1. bit default r/w description 15 0 ro reserved 14 0 ro 1 st sample edge indication for timestamp unit 1 0 = indicates the event is a falling edge signal. 1 = indicates the event is a rising edge signal. 13 ? 0 0x0000 ro 1 st sample time in ns high - word [29:16] for timestamp unit 1 this is the high - word of first sample time for timestamp u nit 1 in nanoseconds . timestamp unit 1 input 1st sample time in second s low - word register (0x428 ? 0x429): ts1_smpl1_sl this register contains the first sample time in seconds low - word for ptp timestamp unit 1. bit default r/w description 15 ? 0 0x0000 ro 1 st sample time in seconds low - word [15:0] for timestamp unit 1 this is the low - word of first sample time for timestamp unit 1 in seconds . timestamp unit 1 input 1st sample time in seconds high - word register (0x42a ? 0x42b): ts1_smpl1_sh this register contains the first sample time in seconds high - word for ptp timestamp unit 1. bit default r/w description 15 ? 0 0x0000 ro 1 st sample time in seconds high - word [31:16] for timestamp unit 1 this is the high - word of first sample time for timestamp unit 1 in seconds.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 206 revision 1.0 timestamp unit 1 input 1 st sample time in sub - nanosecond s register (0x42c ? 0x42d): ts1_smpl1_sub_ns this register contains the first sample time in sub - 8 nanoseconds (the resolution of 8 ns) for ptp timestamp unit 1. bit default r/w description 15 ? 3 0x0000 ro reserved 2 ? 0 0 0 0 ro 1 st sample time in sub - 8 nanoseconds for timestamp unit 1 these bits indicate one of the 8 ns cycles for the first sample time for timestamp unit 1. 000: 0 ns (sample tim e at the first 8 ns cycle in 25 mhz/40 ns) 001: 8 ns (sample time at the second 8 ns cycle in 25 mhz/40 ns) 010: 16 ns (sample tim e at the third 8 ns cycle in 25 mhz/40 ns) 011: 24 ns (sample time at the fourth 8 ns cycle in 25 mhz/40 ns) 100: 32 ns (sample tim e at the fifth 8 ns cycle in 25 mhz/40 ns) 101- 111: na 0x4 2e ? 0x433: reserved timestamp unit 1 input 2 nd sample time in nanoseconds low - w ord register (0x434 ? 0x435): ts1_smpl2_nsl this register contains the second sample time in nanoseconds low - word (the resolution of 40 ns) for ptp timestamp unit 1. bit default r/w description 15 ? 0 0x0000 ro 2 nd sample time in nanoseconds for low - word [15:0] for timestamp unit 1 this is the low - word of the 2nd sample time for timestamp unit 1 in nanoseconds . timestamp unit 1 input 2 nd sample time in nanosecond s high - word register (0x436 ? 0x437): ts1_smpl2_nsh this register contains the 2 nd sample time in nanoseconds high - word and edge detection status for the ptp timestamp unit 1. bit default r/w description 15 0 ro reserved 14 0 ro 2 nd sample edge indication for timestamp unit 1 0 = indicates the event is a falling edge signal. 1 = indicates the event is a rising edge signal. 13 ? 0 0x0000 ro 2 nd sample time in nanoseconds high - word [29:16] for timestamp unit 1 t his is the high - word of the 2 nd sample time for timestamp unit 1 in nanoseconds . t imestamp unit 1 input 2 nd sample time in second s low - word register (0x438 ? 0x439): ts1_smpl2_sl this register contains the 2 nd sample time in seconds low - word for ptp timestamp unit 1. bit def ault r/w description 15 ? 0 0x0000 ro 2 nd sample time in seconds low - word [15:0] for timestamp unit 1 this is the low - word of the second sample time for timestamp unit 1 in seconds.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 207 revision 1.0 timestamp unit 1 input 2 nd sample time in second s high - w ord register (0x43a ? 0x43b): ts1_smpl2_sh this register contains the 2 nd sample time in seconds high - word for ptp timestamp unit 1. bit default r/w description 15 ? 0 0x0000 ro 2 nd sample time in seconds high - word [31:16] for timestamp unit 1 this is the high - word of the second sample time for timestamp unit 1 in seconds. timestamp unit 1 input 2 nd sample time in sub - nanosecond s register (0x43c ? 0x43d): ts1_smpl2_sub_ns this register contains the 2 nd sample time in sub - 8 n anoseconds (the resolution of 8 ns) for ptp timestamp unit 1. bit default r/w description 15 ? 3 0x0000 ro reserved 2 ? 0 0 0 0 ro 2nd sample time in sub - 8 nanoseconds for timestamp unit 1 t hese bits indicate one of the 8 ns cycle for the second sample time for timestamp unit 1. 000: 0 ns (sample time at the first 8ns cycle in 25mhz/40 ns) 001: 8 ns (sample time at the sec ond 8ns cycle in 25mhz/40 ns) 010: 16 ns (sample time at the third 8ns cycle in 25mhz/40 ns) 011: 24 ns (sample time at the fourth 8ns cycle in 25mhz/40 ns) 100: 32 ns (sample time at the fifth 8ns cycle in 25mhz/40 ns) 101- 111: na 0x43e ? 0x43f: reserved timestamp unit 2 status/conf iguration/control and input 1 st sample time registers (0x440 ? 0x44d) these seven registers contain the first sample time and status/configuration/control information for ptp timestamp unit 2. see description in timestamp unit 1 (0x420 ? 0x42d). 0x44e ? 0x453: reserved timestamp unit 2 input 2 nd sample time registers (0x454 ? 0x45d) these five registers contain the second sample time for ptp timestamp unit 2. see description in timestamp unit 1 (0x434 ? 0x43d). 0x45e ? 0x45f: reserved timestamp unit 3 status/conf iguration/control and input 1 st sample time registers (0x460 ? 0x46d) these s even registers contain the first sample time and status/configuration/control information for ptp timestamp unit 3. see description in timestamp unit 1 (0x420 ? 0x42d). 0x46e ? 0x473: reserved timestamp unit 3 input 2 nd sample time registers (0x474 ? 0x 47d) these five registers contain the 2nd sample time for ptp timestamp unit 3. see description in timestamp unit 1 (0x434 ? 0x43d).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 208 revision 1.0 0x47e ? 0x47f: reserved timestamp unit 4 status/conf iguration/control and input 1 st sample time registers (0x480 ? 0x48d ) these seven registers contain the1 st sample time and status/configuration/control information for ptp timestamp unit 4. see description in timestamp unit 1 (0 x420 ? 0x42d). 0x48e ? 0x493: reserved timestamp unit 4 input 2 nd sample time registers (0x494 ? 0x49d) these five registers contain the 2 nd sample time for ptp timestamp unit 4 input. see description in timestamp unit 1 (0x434 ? 0x43d). 0x49e ? 0x49f: reserved timestamp unit 5 status/conf iguration/control and input 1 st sample time registers (0x4a0 ? 0x4ad) these seven registers contain the 1 st sample time and status/configuration/control information for ptp timestamp unit 5. see description in timestamp unit 1 (0x420 ? 0x42d). 0x4ae ? 0x4b3: reserved timestamp unit 5 input 2 nd sample time registers (0x4b4 ? 0x4bd) th ese five registers contain the 2 nd sample time for ptp timestamp unit 5. see description in timestamp unit 1 (0x434 ? 0x43d). 0x4be ? 0x4bf: rese rved timestamp unit 6 status/conf iguration/control and input 1 st sample time registers (0x4c0 ? 0x4cd) these seven registers contain the 1 st sample time and status/configuration/control information for ptp timestamp unit 6. see description in timestamp unit 1 (0x420 ? 0x42d). 0x4ce ? 0x4d3: reserved timesta mp unit 6 input 2 nd sample time registers (0x4d4 ? 0x4dd) these five registers contain the 2 nd sample time for ptp timestamp unit 6. see description in timestamp unit 1 (0x434 ? 0x43d). 0x4de ? 0x4df: reserved timestamp unit 7 status/conf iguration/contro l and input 1 st sample time registers (0x4e0 ? 0x4ed) these seven registers contain the 1 st sample time and status/configuration/control information for ptp timestamp unit 7. see description in timestamp unit 1 (0x420 ? 0x42d).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 209 revision 1.0 0x4ee ? 0x4f3: reserved timestamp unit 7 input 2 nd sample time registers (0x4f4 ? 0x4fd) these five registers contain the 2 nd sample time for ptp timestamp unit 7. see description in timestamp unit 1 (0x434 ? 0x43d). 0x4fe ? 0x4ff: reserv ed timestamp unit 8 status/conf iguration/control and input 1 st sample time registers (0x500 ? 0x50d) these seven registers contain the1 st sample time and status/configuration/control information for ptp timestamp unit 8. see description in timestamp unit 1 (0x420 ? 0x42d). 0x50e ? 0x5 13: reserved timestamp unit 8 input 2 nd sample time registers (0x514 ? 0x51d) these five registers contain the 2 nd sample time for ptp timestamp unit 8. see description in timestamp unit 1 (0x434 ? 0x43d). 0x51e ? 0x51f: reserve d timestamp unit 9 status /conf iguration/control and input 1 st sample time registers (0x520 ? 0x52d) these seven registers contain the 1 st sample time and status/configuration/control information for ptp timestamp unit 9. see description in timestamp unit 1 (0 x420 ? 0x42d). 0x52e ? 0x533: reserved timestamp unit 9 input 2 nd sample time registers (0x534 ? 0x53d) these five registers contain the 2 nd sample time for ptp timestamp unit 9. see description in timestamp unit 1 (0x434 ? 0x43d). 0x53e ? 0x53f: reserve d timestamp unit 1 0 status/conf iguration/control and input 1 st sample time registers (0x540 ? 0x54d) these seven registers contain the 1 st sample time and status/configuration/control information for ptp timestamp unit 10. see description in timestamp unit 1 (0x420 ? 0x42d) . 0x54e ? 0x553: reserved timestamp unit 10 input 2 nd sample time registers (0x554 ? 0x55d) these five registers contain the 2 nd sample time for ptp timestamp unit 10. see description in timestamp unit 1 (0x434 ? 0x43d).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 210 revision 1.0 0x55e ? 0x55f: reser ved timestamp unit 11 status/conf iguration/control and input 1 st sample time registers (0x560 ? 0x56d) these seven registers contain the1 st sample time and status/configuration/control information for ptp timestamp unit 11. see description in timestamp unit 1 (0x420 ? 0x42d). 0x56e ? 0x573: reserved timestamp unit 11 input 2 nd sample time registers (0x574 ? 0x57d) these five registers contain the 2 nd sample time for ptp timestamp unit 11. see description in timestamp unit 1 (0x434 ? 0x43d). 0x57e ? 0x57f: r es erved timestamp unit 12 status/conf iguration/control and input 1 st sample time registers (0x580 ? 0x58d) ( note : timestamp unit 12 has eight s ample time registers available) these seven registers contain the 1 st sample time and status/configuration/control information for ptp timestamp unit 12. see description in timestamp unit 1 (0x420 ? 0x42d). 0x58e ? 0x593: reserved timestamp unit 12 input 2 nd sample time registers (0x594 ? 0x59d) th ese 5 registers contain the 2 nd sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x434 ? 0x43d). 0x59e ? 0x5a3: reserved timestamp unit 12 input 3 rd sample time registers (0x5a4 ? 0x5ad) th ese 5 registers contain the 3 rd sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x 434 ? 0x43d). 0x5ae ? 0x5b3: reserved timestamp unit 12 input 4 th sample time registers (0x5b4 ? 0x5bd) these five registers contain the 4 th sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x434 ? 0x43d). 0x5be ? 0x5c3: reserve d timestamp unit 12 input 5 th sample time registers (0x5c4 ? 0x5cd) these five registers contain the 5 th sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x434 ? 0x43d).
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 211 revision 1.0 0x5ce ? 0x5d3: reserved timestamp unit 12 input 6 th sample time registers (0x5d4 ? 0x5dd) these five registers contain the 6 th sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x434 ? 0x43d). 0x5de ? 0x5e3: reserve d timestamp unit 12 input 7 th sample time registers (0x5e4 ? 0x5ed) these five registers contain the 7 th sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x434 ? 0x43d).0x5ee ? 0x5f3 : reserved 0x5ee ? 0x5f3: reserved timestamp unit 12 input 8 th sample time registers (0x5f4 ? 0x5fd) these five registers cont ain the 8 th sample time for ptp timestamp unit 12. see description in timestamp unit 1 (0x434 ? 0x43d). 0x5fe ? 0x5ff: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 212 revision 1.0 internal i/o registers space mapping for ptp 1588 clock and global control (0x600 ? 0x7ff) ptp clock control register (0x600 ? 0x601): ptp_clk_ctl this register contains control of ptp 1588 clock. bit default r/w description 15 ? 7 0x000 ro reserved 6 0 rw/sc ( self - clear ) enable step adjustment mode to ptp 1588 clock (ptp_step_adj_clk) setting this bit will cause the time value in ptp_rtc_nsh/l registers to be added (ptp_step_dir, bit [ 5 ] = ?1 ? or subtracted (ptp_step_dir, bit [ 5 ] = ? 0 ? ) from the system time clock. this bit is self - clearing. 5 0 rw direction control for step adjustment mode (ptp_step_dir) 1 = to add the time value in ptp_rtc_nsh/l registers to system time clock. 0 = to subtract the time value in ptp_rtc_nsh/l registers from system time clock. 4 0 rw/sc ( self - clear ) enable read ptp 1588 clock (ptp_read_clk) setting this bit will cause the device to sample the ptp 1588 clock time value. this time value will be made availab le for reading through the ptp_rtc_sh/l, ptp_rtc_nsh/l and ptp_rtc_phase registers. this bit is self - clearing. 3 0 rw/sc ( self - clear ) enable load ptp 1588 clock for direct time setting mode (ptp_load_clk) setting this bit will cause the device to load the ptp 1588 clock time value from ptp_rtc_sh/l, ptp_rtc_nsh/l and ptp_rtc_phase registers. the writes to ptp_rtc_sh/l, ptp_rtc_nsh/l and ptp_rtc_phase are performed before setting this bit. this bit is self - clearing. 2 0 rw enable continuous adjustment m ode for ptp 1588 clock (ptp_continu_adj_clk) 1 = e nable continuous incrementing (ptp_rate_dir = ?0?) or decrementing (ptp_rate_dir = ?1?) frequency adjustment by the value in ptp_sns_rate_h [29:16] and ptp_sns_rate_l [15:0] on every 25 mhz clock cycle. 0 = disable continuous adjustment mode to ptp 1588 clock.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 213 revision 1.0 ptp clock control register (0x600 ? 0x601): ptp_clk_ctl (continued) bit default r/w description 1 1 rw enable ptp 1588 clock (en_ptp_clk) 1 = to enable the ptp clock. 0 = to disable the ptp clock and the ptp clock will be frozen. for non - ptp mode, this bit is set to ?0? for stopping clock toggling. 0 0 rw/sc ( self - clear ) reset ptp 1588 clock (reset_ptp _clk) setting this bit will reset the ptp 1588 clock. 0x602 ? 0x603: reserved ptp real time clock in nanosecond s low - word regist er (0x604 ? 0x605): ptp_rtc_nsl this register contains the ptp real time clock in nanoseconds low - word . bit default r/w description 15 ? 0 0x0000 rw ptp real time clock in nanoseconds low - word [15:0] this is low - word of the ptp real time clock in nanoseconds. ptp real time clock in nanosecond s high - word register (0x606 ? 0x607): ptp_rtc_nsh this register contains the ptp real time clock in nanoseconds high - word . bit default r/w description 15 ? 14 00 rw upper two bits in counter not used. 13 ? 0 0x0000 rw ptp real time clock in nanoseconds high - word [29:16] this is high - word of the ptp real time clock in nanoseconds. ptp real time clock in second s low - word register (0x608 ? 0x609): ptp_rtc_sl this register contains the ptp real time clock in seconds low - word . bit default r/w description 15 ? 0 0x0000 rw ptp real time clock in seconds low - word [15:0] this is low - word of the ptp real time clock in seconds. ptp real time clock in second s high - word register (0x60a ? 0x60b): ptp_rtc_sh this register contains the ptp real time clock in seconds high - word . bit default r/w description 15 ? 0 0x0000 rw ptp real time clock in seconds high - word [31:16] this is high - word of the ptp real time clock in seconds.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 214 revision 1.0 ptp real time clock in phase register (0x60c ? 0x60d): ptp_rtc_phase this register indicates which sub phase of the ptp real time clock is current. the resolution is 8 ns. the ptp real time clock is updated every 40 ns. bit default r/w description 15 ? 3 0x0000 ro reserved 2 ? 0 000 rw ptp real time clock in sub 8ns phase t hese bits indicate one of the 8 ns sub - cycle times of the 40ns period ptp real time clock. 000: 0 ns (real time clock at the first 8ns cycle in 25mhz/40 ns) 001: 8 ns ( real time clock at the second 8ns cycle in 25mhz/40 ns) 010: 16 ns ( real time clock at the third 8 ns cycle in 25mhz/40 ns) 011: 24 ns (real time clock at the fourth 8 ns cycle in 25mhz/40 ns) 100: 32 ns (real time clock at the fifth 8ns cy cle in 25mhz/40 ns) 101- 111: na this register is set to zero whenever the ptp_rtc_nsl, ptp_rtc_nsh, ptp_rtc_sl, ptp_rtc_sh registers are written to by the cpu. 0x60e ? 0x60f: reserved ptp rate in sub - nanosecond s low - word register (0x610 ? 0x611): ptp_sns_rate_l this register contains the ptp rate control in sub - nanoseconds low - word . bit default r/w description 15 ? 0 0x0000 rw ptp rate control in sub - nanoseconds low - word [15:0] this is low - word of ptp rate control value in units of 2 ? 32 ns. the ptp rate control value is used for incrementing (ptp_rate_dir = ?0?) or decrementing (ptp_rate_dir = ?1?) the frequency adjustment by the value in ptp_sns_rate_h [29:16] and ptp_sns_rate_l [15:0 ] per reference clock cycle (40 ns). on each reference clock cy cle, the ptp clock will be adjusted ref_clk_period ptp_sns_rate_h/l value. setting both ptp_sns_rate_h/l registers value to ?0x0? will disable both continuous and temporary adjustment modes.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 215 revision 1.0 ptp rate in sub - nanosecond s high - word and control register (0x612 ? 0x613): ptp_sns_rate_h this register contains the ptp rate control in sub - nanoseconds high - word and configuration . bit default r/w description 15 0 rw rate direction control for temporary or continuous adjustment mode (ptp_rate_dir) 1 = lower frequency. the ptp_sns_rate_h/l value will be added to syste m time clock on every 25 mhz clock cycle. 0 = higher frequency. the ptp_sns_rate_h/l value will be subtracted from system time clock on every 25 mhz clock cycle. 14 0 rw/sc ( self - clear ) enable temporary adjustment mode for ptp 1588 clock (ptp_temp_adj_clk) 1 = enable the temporary incrementing (ptp_rate_dir = ?0?) or decrementing (ptp_rate_dir = ?1?) frequency adjustment by the value in the ptp_sns_rate_h/l regi sters over the duration of time set in the ptp_adj _dura_h/l registers on every 25 mhz clock cycle. this bit is self - cleared when the adjustment is completed. software can read this bit to check whether the adjustment is still in progres s. 0 = disable the temporary adjustment mode to the ptp clock. 13 ? 0 0x0000 rw ptp rate control in sub - nanoseconds high - word [29:16] (ptp_sns_rate_h[29:16]) this is high - word of ptp rate control value in units of 2 ? 32 ns. the ptp rate control value is used for incrementing (ptp_rate_dir = ?0?) or decrementing (ptp_rate_dir = ?1?) the frequency adjustment by the value in ptp_sns_rate_h [29:16] and ptp_sns_rate_l [15:0] per reference clock cycle (40 ns). on each reference clock cycle, the ptp clock will b e a djusted by a ref_clk_period ptp_sns_rate_h/l value. setting both ptp_sns_rate_h/l registers value to ?0x0? will disable both continuous and temporary adjustment modes. ptp temporary adjustment mode duration in low - word register (0x614 ? 0x615): ptp_temp_adj_dura_l this register contains the ptp temporary rate adjustment duration in low - word. bit default r/w description 15 ? 0 0x0000 rw ptp temporary rate adjustment duration in low - word [15:0] this register is used to set the duration for the temporary rate adjustment in number of 25 mhz clock cycles. ptp temporary adjustment mode duration in high - word register (0x616 ? 0x617): ptp_temp_adj_dura_h this register contains the ptp temporary rate adjustment duration in high - w ord. bit default r/w description 15 ? 0 0x0000 rw ptp temporary rate adjustment duration in high - word [31:16] this register is used to set the duration for the temporary rate adjustment in number of 25 mhz clock cycles. 0x618 ? 0x61f: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 216 revision 1.0 ptp message configuration 1 register (0x620 ? 0x621): ptp_msg_cfg_1 this register contains the ptp message configuration 1. bit default r/w description 15 ? 8 0x00 ro reserved 7 0 rw enable ieee 802. 1as mode setting this bit will enable the ieee 802. 1as mode and all ptp packets are forwarded to port 3. 6 1 rw enable ieee 1588 ptp mode 1 = to enable the ieee 1588 ptp mode. 0 = to disable the ieee 1588 ptp mode. 5 0 rw enable detection of ieee 802.3 ethernet ptp message 1 = enable to detect the ethernet ptp message. 0 = disable to detect the ethernet ptp message. 4 1 rw enable detection of ipv4/udp ptp message 1 = enable to detect the ipv4/udp ptp message. 0 = disable to detect the ipv4/udp ptp message. 3 1 rw enable detection of ipv6/udp ptp message 1 = enable to detect the ipv6/udp ptp message. 0 = disable to detect the ipv6/udp ptp message. 2 0 rw selection of p2p or e2e 1 = select peer -to - peer (p2p) transparent clock mode. 0 = select end -to - end (e2e) transparent clock mode. 1 0 rw selection of master or slave 1 = select port 3 as master in ordinary clock mode. 0 = select port 3 as slave in ordin ary clock mode. 0 1 rw selection of one - step or two - step operation 1 = select one - step clock mode. 0 = select two - step clock mode.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 217 revision 1.0 ptp message configuration 2 register (0x622 ? 0x623): ptp_msg_cfg_2 this register contains the ptp message configuration 2. bit default r/w description 15 ? 13 000 ro reserved 12 0 rw enable unicast ptp 1 = t he unicast ptp packet can be recognized. if the packet udp destination port is either 319 or 320 and the packet mac/ip address is not the ptp reserved address, then the packet will be considered as unicast ptp packet and the packet forwarding will be decided by regular table lookup. 0 = o nly multicast ptp packet will be recognized. 11 0 rw enable alternate master 1 = a lternate master clock is sup port ed. the sync, follow _ up, d elay_req, and delay _ resp messages of the same domain received at port 1 / port 2 by active master clock of same domain will be forwarded to port 2 / port 1 . 0 = a lternate master clock is not sup port ed. the sync message will not be forwarded to the other port when this bit = ?0?. the d elay_req message of same domain received at port 1 / port 2 by active master clock of same domain will be discarded on port 3 and be forwarded to port 2 / port 1 if d elay_req is for other domains. 10 1 rw ptp messages priority tx queue 1 = all ptp messages are assigned to highest priority tx queue. 0 = only the ptp event messages are assigned to highest priority tx queue. 9 0 rw enable checking of associated sync and follow_up ptp messages setting this bit will associate follow _ up message with sync message under certain situations. this bit only applies to ptp frames on port 3. refer to the micrel 1588 ptp developers guide document for detailed inf ormation on its usage. 8 0 rw enable checking of associated delay_req and delay_resp ptp messages while this bit is set, the delay_resp message will be forwarded to port 1/ port 2 if the associations do not match and is forwarded to port 3 if the associati ons match. setting this bit will associate delay_resp message with delay_req message when it has the same domain, sequenceid, and source port id. the ptp frame will be forwarded to port 3 if the id matches. 7 0 rw enable checking of associated pdelay_req and pdelay_resp ptp messages setting this bit will associate pdelay_resp/pdelay_resp_follow_up messages with pdelay_req message when it has the same domain, sequenceid, and source port id. the ptp frame wil l be forwarded to port 3 if the id matches. this bit only applies to ptp frames on port 3. 6 0 ro reserved 5 0 rw reserved 4 0 rw enable checking of domain field: domain_en setting this domain_en bit will enable the device to automatically check the domain field in ptp message with the ptp_domain_ver[7:0]. the ptp message will be forwarded to port 3 if the domain field is matched to ptp_domain_ver[7:0] otherwise the ptp message will be dropped. if set this bit to ?0?, regardless of domain field , ptp messages are always f orwarded to port 3 according to hardware default rules.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 218 revision 1.0 ptp message configuration 2 register (0x622 ? 0x623): ptp_msg_cfg_2 (continued) bit default r/w description 3 0 ro reserved 2 1 rw enable the ipv4/udp checksum calculation for egress packets 1 = the device will re - calculate and generate a 2 - byte checksum value due to a frame contents change. 0 = the checksum field is set to zero. if the ipv4 /udp checksum is zero, the checksum will remain zero regardless of this bit setting. for ipv6 /udp, the checksum is always updated. 1 0 rw announce message from port 1 1 = the announce message is received from port 1 direction. 0 = the announce message is not received from port 1 direction. 0 0 rw announce message from port 2 1 = the announce message is received from port 2 direction. 0 = the announce message is not received from port 2 direction. ptp domain and version register (0x624 ? 0x625): ptp_domain_ver this register contains the ptp domain and version information. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 8 0x2 rw ptp version this is the value of ptp message version number field. all ptp packets will be captured when the receive ptp message version matches the value in this field. all ptp packets will be dropped if the receive ptp message version does not match the value in this field . e xcept for the value of version 1, the device is always forwarding ptp packets between port 1 and port 2, and not to port 3. 7 ? 0 0x00 rw ptp domain this is the value of the ptp message domain number field. if the domain_en bit is set to ?1 ?, the ptp messages will be filtered out and only forwarded to port 3 if the domain number matches. if the domain_en bit is set to ?0 ? , the domain number field will be ignored under certain circumstances. 0x626 ? 0x63f: reserved ptp port 1 receive latency register (0x640 ? 0x641): ptp_p1_rx_latency this register contains the ptp port 1 receive latency value in nanoseconds. bit default r/w description 15 ? 0 0x019f rw ptp port 1 rx latency in nanoseconds [15:0] this register is used to set the fixed receive delay value from port 1 wire to rx timestamp reference point. the default value is 415 ns.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 219 revision 1.0 ptp port 1 transmit latency register (0x642 ? 0x643): ptp_p1_tx_latency this register contains the ptp port 1 transmit latency value in nanoseconds. bit default r/w description 15 ? 0 0x002d rw ptp port 1 tx latency in nanoseconds [15:0] this register is used to set the fixed transmit delay value from port 1 tx timestamp reference point to wire. the default val ue is 45 ns. ptp port 1 asymmetry correction register (0x644 ? 0x645): ptp_p1_asym_cor this register contains the ptp port 1 asymmetry correction value in nanoseconds. bit default r/w description 15 0 rw ptp port 1 asymmetry correction sign bit 1 = the magnitude in bit[14:0] is negative. 0 = the magnitude in bit[14:0] is positive. 14 ? 0 0x0000 rw ptp port 1 asymmetry correction in nanoseconds [14:0] this register is used to set the fixed asymmetry value to add in the correction field for ingress sync and pdelay_resp or to subtract from correction field for egress delay_req and pdelay_req. ptp port 1 link delay register (0x646 ? 0x647): ptp_p1_link_ dly this register contains the ptp port 1 link delay in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 1 link delay in nanoseconds [15:0] this register is used to set the link delay value between port 1 and link partner port . ptp port 1 egress timestamp low - word register for pdelay_req and delay_req ( 0x648 ? 0x649): p1_xdly_req_tsl this register contains the ptp port 1 egress timestamp low - word value for pdelay_req and delay_req frames in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 1 egress timestamp for pdelay_req and delay_req in nanoseconds [15:0] this register contains port 1 egress timestamp low - word value for pdelay_req and delay_req frames in nanoseconds.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 220 revision 1.0 ptp port 1 egress timestamp high - word register for pdelay_req and delay_req (0x64a ? 0x64b): p1_xdly_req_tsh this register contains the ptp port 1 egress timestamp high - word value for pdelay_req and delay_req frames in nanoseconds. bit default r/w description 15 ? 14 00 rw ptp port 1 egress timestamp for pdelay_req and delay_req in seconds [1:0] these bits are bits [1:0] of the port 1 egress timestamp value for pdelay_req and delay_req frames in seconds. 13 ? 0 0x0000 rw ptp port 1 egress timestamp for pdelay_req and delay_req in nanoseconds [29:16] these bits are bits [29:16] of the port 1 egress timestamp value for pdelay_req and delay_req frames in nanoseconds. ptp port 1 egress timestamp low - word register for sync (0x64c ? 0x64d): p1_sync_tsl this register contains the pt p port 1 egress timestamp low - word value for sync frame in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 1 egress timestamp for sync in nanoseconds [15:0] this register contains port 1 egress timestamp low - word value for sync frame in nanoseconds. ptp port 1 egress timestamp high - word register for sync (0x64e ? 0x64f): p1_sync_tsh this register contains the ptp port 1 egress timestamp high - word value for sync frame in nanoseconds. b it default r/w description 15 ? 14 00 rw ptp port 1 egress timestamp for sync in seconds [1:0] these bits are bits [1:0] of the port 1 egress timestamp value for sync frame in seconds. 13 ? 0 0x0000 rw ptp port 1 egress timestamp for sync in nanoseconds [29:16] these bits are bits [29:16] of the port 1 egress timestamp value for sync frame in nanoseconds. ptp port 1 egress timestamp low - word register for pdelay_resp (0x650 ? 0x651): p1_pdly_resp_tsl this register contains the ptp port 1 egress timestamp low - word value for pdelay_resp frame in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 1 egress timestamp for pdelay_resp in nanoseconds [15:0] this register contains port 1 egress timestamp low - word value for pdelay_resp frame in nanoseconds. ptp port 1 egress timestamp high - word register for pdelay_resp (0x652 ? 0x653): p1_pdly_resp_tsh this register contains the ptp port 1 egress timestamp high - word value for pdelay_resp frame in nanoseconds. bit default r/w description 15 ? 14 00 rw ptp port 1 egress timestamp for pdelay_resp in seconds [1:0] these bits are bits [1:0] of the port 1 egress timestamp value for pdelay_resp frame in seconds. 13 ? 0 0x0000 rw ptp port 1 egress timestamp for pdelay_resp in nanoseconds [29:16] these bits are bits [29:16] of the port 1 egress timestamp high - word value for pdelay_resp frame in nanoseconds. 0x654 ? 0x65f: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 221 revision 1.0 ptp port 2 receive latency register (0x660 ? 0x66 1): ptp_p2_rx_latency this register contains the ptp port 2 receive latency value in nanoseconds. bit default r/w description 15 ? 0 0x019f rw ptp port 2 rx latency in nanoseconds [15:0] this register is used to set the fixed receive delay value from port 2 wire to the rx timestamp reference point. the default value is 415 ns. ptp port 2 transmit latency register (0x662 ? 0x663): ptp_p2_tx_latency this register contains the ptp port 2 transmit latency value in nanoseconds. bit default r/w description 15 ? 0 0x002d rw ptp port 2 tx latency in nanoseconds [15:0] this register is used to set the fixed transmit delay value from port 2 tx timestamp reference point to th e wire. the default value is 45 ns. ptp port 2 asymmetry correction register (0x664 ? 0x665): ptp_p2_asym_cor this register contains the ptp port 2 asymmetry correction value in nanoseconds. bit default r/w description 15 0 rw ptp port 2 asymmetry correction sign bit 1 = the magnitude in bit[14:0] is negative. 0 = the magnitude in bit[14:0] is positive. 14 ? 0 0x0000 rw ptp port 2 asymmetry correction in nanoseconds [14:0] this register is used to set the fixed asymmetry value to add in the correction field for ingress sync and pdelay_resp or to subtract from correction field for egress delay_req and pdelay_req. ptp port 2 link delay register (0x666 ? 0x667): ptp_p2_link_ dly this register contains the ptp port 2 link delay in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 2 link delay in nanoseconds [15:0] this register is used to set the link delay value between port 2 and link partner port . ptp port 2 egress timestamp low - word register for pdelay_req and delay_req (0x668 ? 0x669): p2_xdly_req_tsl this register contains the ptp port 2 egress timestamp low - word value for pdelay_req and delay_req frames in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 2 egress timestamp for pdelay_req and delay_req in nanoseconds [15:0] this register contains port 2 egress timestamp low - word value for pdelay_req and delay_req frames in nanoseconds.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 222 revision 1.0 ptp port 2 egress timestamp high - word register for pdelay_req and delay_req (0x66a ? 0x66b): p2_xdly_req_tsh this register contains the ptp port 2 egress timestamp high - word value for pdelay_req and delay_req frames in nanoseconds. bit default r/w description 15 ? 14 00 rw ptp port 2 egress timestamp for pdelay_req and delay_req in seconds [1:0] these are bits [1:0] of the port 2 egress timestamp value for pdelay_req and delay_req frames in seconds. 13 ? 0 0x0000 rw ptp port 2 egress timestamp for pdelay_req and delay_req in nanoseconds [29:16] these are bits [29:16] of the port 2 egress timestamp value for pdelay_req and delay_req frames in nanoseconds. ptp port 2 egress timestamp low - word register for sync (0x66c ? 0x66d): p2_sync_tsl this register contains the ptp port 2 egress timestamp low - word value for sync frame in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 2 egress timestamp for sync in nanoseconds [15:0] this register contains port 2 egress timestamp low - word value for sync frame in nanoseconds. ptp port 2 egress timestamp high - word register for sync (0x66e ? 0x66f): p2_sync_tsh this register contains the ptp port 2 egress timestamp high - word value for sync frame in nanoseconds. b it default r/w description 15 ? 14 00 rw ptp port 2 egress timestamp for sync in seconds [1:0] these are bits [1:0] of the port 2 egress timestamp value for sync frame in seconds. 13 ? 0 0x0000 rw ptp port 2 egress timestamp for sync nanoseconds [29:16] these are bits [29:16] of the port 2 egress timestamp value for sync frame in nanoseconds. ptp port 2 egress timestamp low - word register for pdelay_resp (0x670 ? 0x671): p2_pdly_resp_tsl this register contains the ptp port 2 egress timestamp low - word value for pdelay_resp frame in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 2 egress timestamp for pdelay_resp in nanoseconds [15:0] this register contains port 2 egress timestamp low - word value for pdelay_resp frame in nanoseconds. ptp port 2 egress timestamp high - word register for pdelay_resp (0x672 ? 0x673): p2_pdly_resp_tsh this register contains the ptp port 2 egress timestamp high - word value for pdelay_re sp frame in nanoseconds. bit default r/w description 15 ? 0 0x0000 rw ptp port 2 egress timestamp for pdelay_resp in nanoseconds [31:16] this register contains port 2 egress timestamp high - word value for pdelay_resp frame in nanoseconds. 0x674 ? 0x67f: reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 223 revision 1.0 gpio monitor register (0x680 ? 0x681): gpio_monitor this register contains read - only access for the current values on gpio inputs. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 ro gpio inputs monitor this field reflects the current values s een on the gpio inputs. gpios 11 through 0 are mapped to bits [11 :0 ] in order. gpio output enable register (0x682 ? 0x683): gpio_oen this register contains the control bits for gpio output enable. bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 rw gpio output enable 0 = enables the gpio pin as trigger output. 1 = enables the gpio pin as timestamp input. gpios 11 through 0 are mapped to bits [11 :0 ] in order. 0x684 ? 0x687: reserved ptp trigger unit interrupt status register (0x688 ? 0x689): ptp_trig_is this register contains the interrupt status of ptp event trigger units . bit default r/w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 ro (w1c) trigger output unit interrupt status when this bit is set to 1, it indicates that the trigger output unit i s done or has an error. the trigger output units from 12 to 1 are mapped to bit [11:0]. these 12 trigger output unit interrupt status bits are logical or?ed together and connected to isr bit [10]. any of the interrup status bits are cleared by writing a ?1? to the particular bit. ptp trigger unit interrupt enable register (0x68a ? 0x68b): ptp_trig_ie this register contains the interrupt enable of ptp trigger output units . bit default r/ w description 15 ? 12 0x0 ro reserved 11 ? 0 0x000 rw trigger output unit interrupt enable when this bit is set to ?1?, it indicates that the trigger output unit interrupt is enabled. the trigger output units from 12 to 1 are mapped to bit [11:0]. these 12 trigger output unit interrupt enables are logical or?ed together and connected to ier bit [10].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 224 revision 1.0 ptp timestamp unit interrupt status register (0x68c ? 0x68d): ptp_ts_is this register contains the interrupt status of ptp timestamp units . each bit in this register is cleared by writing a ?1? to it. bit default r/w description 15 0 ro (w1c) port 2 egress timestamp for pdelay_req/resp and delay_req frames interrupt status when this bit is set to ?1?, it indicates that the egress timestamp is available from port 2 for pdelay _req/resp and delay_req frames. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to isr bit [12]. 14 0 ro (w1c) port 2 egress timestamp for sync frame interrupt status when this bit is set to ?1?, it indicates that the egress timestamp is available from port 2 for sync frame. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to isr bit [12]. 13 0 ro (w1c) port 1 egress timestamp for pdelay_req/resp and delay_req frames interrupt status when this bit is set to ?1?, it indicates that the egress timestamp is available from port 1 for pdelay_req/resp and delay_req frames. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to isr bit [12]. 12 0 ro (w1c) port 1 egress timestamp for sync frame interrupt status when this bit is set to ?1?, it indicates that the egress timestamp is available from port 1 for sync frame. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to isr bit [12]. 11 ? 0 0x000 ro (w1c) timestamp unit interrupt status when this bit is set to ?1?, it indicates that the timestamp unit is ready (ts_rdy = ?1?). the timestamp units from 12 to 1 are mapped to bit [11:0]. these 12 timestamp interrupts status are logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to isr bit [12].
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 225 revision 1.0 ptp timestamp unit interrupt enable register (0x68e ? 0x68f): ptp_ts_ie this register contains the interrupt enable of ptp timestamp units . bit default r/w description 15 0 rw port 2 egress timestamp for pdelay_req/resp and delay_req frames interrupt enable when this bit is set to ?1?, it is enabled the interrupt when the egress timestamp is available from port 2 for pdelay_req/resp and delay_req frames. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed outpu t is connected to ier bit[12]. 14 0 rw port 2 egress timestamp for sync frame interrupt enable when this bit is set to ?1?, it is enabled the interrupt when the egress timestamp is available from port 2 for sync frame. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to ier bit [12]. 13 0 rw port 1 egress timestamp for pdelay_req/resp and delay_req frames interrupt enable when this bit is set to ?1?, it is enabled the interrupt when the egress timestamp is available from port 1 for pdelay_req/resp and delay_req frames. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to ier bit [12]. 12 0 rw port 1 egress timestamp for sync frame interrupt enable when this bit is set to ?1?, it is enabled the interrupt when the egress timestamp is available from port 1 for sync frame. this bit will be logical or?ed together with the rest of bits in this register and the logical or?ed output is connected t o ier bit [12]. 11 ? 0 0x000 rw timestamp unit interrupt enable when this bit is set to ?1?, it indicates that the timestamp unit interrupt is enabled. the timestamp units from 12 to 1 are mapped to bit [11:0]. these 12 timestamp interrupts enable are logical or?ed together with the rest of bits in this register and the logical or?ed output is connected to ier bit [12]. 0x690 ? 0x733 : reserved dsp control 1 register (0x734 ? 0x735): dsp_cntrl_6 this register contains control bits for the dsp block. bit default r/w description 15 ? 14 00 rw reserved 13 1 rw receiver adjustment set this bit to ?1? when both port s 1 and 2 are in copper mode. when port 1 and/or port 2 is in fiber mode, this bit should be cleared to ?0?. note that the fiber or copper mode is selected in the cfgr register (0x0d8 ? 0x0d9). 12 ? 0 0x1020 rw reserved 0x736 ? 0x747 : reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 226 revision 1.0 analog control 1 register (0x748 ? 0x749): ana_cntrl_1 this register contains control bits for the analog block . bit default r/w description 15 ? 8 0x00 rw reserved 7 0 rw ldo off this bit is used to control the o n/off state of the internal low - voltage r egulator . 0 = ldo on (default) 1 = turn ldo off 6 ? 0 0x00 rw reserved 0x74a ? 0x74b : reserved analog control 3 register (0x74c ? 0x74d): ana_cntrl_3 this register contains control bits for the analog block . bit default r/w description 15 0 rw hipls3 mask this bit must be set prior to initiating the linkmd function. 14 - 4 0x00 0 rw reserved 3 0 rw btrx reduce this bit must be set prior to initiating the linkmd function. 2 ? 0 000 rw reserved 0x74e ? 0x7ff : reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 227 revision 1.0 mii management (miim) registers the miim interface is used to access the mii phy registers within the two embedded phy blocks. the spi interface can also be used to access these registers. the latter three interfaces use a different mapping mechanism than the miim interface. note that wh en accessing these registers via the spi interface, the relative order of the registers is not exactly the same. the ?phyads? by defaults are assigned ?0x1? for phy1 ( port 1) and ?0x2? for phy2 ( port 2). the ?regad? sup port ed addresses are 0x0 - 0x5, 0x1d a nd 0x1f. table 22. phy register mapping using the mii interface phy and register address description phyad = 0x1, regad = 0x0 phy1 basic control register phyad = 0x1, regad = 0x1 phy1 basic status register phyad = 0x1, regad = 0x2 phy1 physical identifier i phyad = 0x1, regad = 0x3 phy1 physical identifier ii phyad = 0x1, regad = 0x4 phy1 auto - negotiation advertisement register phyad = 0x1, regad = 0x5 phy1 auto - negotiation link partner ability register phyad = 0x1, 0x6 ? 0x1c phy1 not sup port ed phyad = 0x1, 0x1d phy1 linkmd control/status phyad = 0x1, 0x1e phy1 not sup port ed phyad = 0x1, 0x1f phy1 special control/status phyad = 0x2, regad = 0x0 phy2 basic control register phyad = 0x2, regad = 0x1 phy2 basic status register phyad = 0x2, regad = 0x2 phy2 physical identifier i phyad = 0x2, regad = 0x3 phy2 physical identifier ii phyad = 0x2, regad = 0x4 phy2 auto - negotiation advertisement register phyad = 0x2, regad = 0x5 phy2 auto - negotiation link partner ability register phyad = 0x2, 0x6 ? 0x1c phy2 not sup port ed phyad = 0x2, 0x1d phy2 linkmd ? control/status phyad = 0x2, 0x1e phy2 not sup port ed phyad = 0x2, 0x1f phy2 special control/status
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 228 revision 1.0 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 0 (regad = 0x0) - > mii basic control bit default r/w description 15 0 ro reserved 14 0 rw far - end loopback 1 = perform port 1 loopback example as follows: start: rxp2/rxm2 ( port 2) loop back: pmd/pma of port 1?s phy end: txp2/txm2 ( port 2) 0 = normal operation. 13 0 rw force 100bt 1 = force 100 mbps if auto - negotiation is disabled (bit [12]) 0 = force 10 mbps if auto - negotiation is disabled (bit [12]) 12 1 rw auto - negotiation enable 1 = auto - negotiation enabled. 0 = auto - negotiation disabled. 11 0 rw power - down 1 = power - down. 0 = normal operation. 10 0 ro isolate not sup port ed. 9 0 rw restart auto - negotiation 1 = restart auto - negotiation . 0 = normal operation. 8 0 rw force full duplex 1 = force full duplex. 0 = force half duplex. applies i f auto - negotiation is disabled . it is always in half duplex if a uto - negotiation is enabled but failed. 7 0 ro collision test not sup port ed. 6 0 ro reserved 5 1 r/w hp_mdix 1 = hp auto - mdi - x mode. 0 = micrel auto - mdi - x mode. 4 0 rw force mdi -x 1 = force mdi -x. 0 = normal operation. 3 0 rw disable auto - mdi -x 1 = disable auto - mdi - x. 0 = normal operation.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 229 revision 1.0 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 0 (regad = 0x0) - > mii basic control (continued) bit default r/w description 2 0 rw disable far - end fault 1 = d isable far - end fault detection. 0 = normal operation. for 100 base- fx fiber mode operation. 1 0 rw disable transmit 1 = disable transmit. 0 = normal operation. 0 0 rw disable led 1 = disable led. 0 = normal operation. phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 1 (regad = 0x1) - > mii basic status bit default r/w description 15 0 ro t4 capable 1 = 100 base - t4 capable. 0 = not 100 base - t4 capable. 14 1 ro 100bt full capable 1 = 100base - tx full - duplex capable. 0 = not 100base - tx full duplex capable. 13 1 ro 100bt half capable 1 = 100base - tx half - duplex capable. 0 = not 100base - tx half - duplex capable. 12 1 ro 10bt full capable 1 = 10base - t full - duplex capable. 0 = not 10base - t full - duplex capable. 11 1 ro 10bt half capable 1 = 10base - t half - duplex capable. 0 = not 10base - t half - duplex capable. 10 ? 7 0x0 ro reserved 6 0 ro preamble suppressed not sup port ed. 5 0 ro auto - negotiation complete 1 = auto - negotiation complete. 0 = auto - negotiation not completed. 4 0 ro far - end fault 1 = f ar - end fault detected. 0 = n o far - end fault detected. for 100 base- fx fiber - mode operation.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 230 revision 1.0 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 1 (regad = 0x1) - > mii basic status (continued) bit default r/w description 3 1 ro auto - negotiation capable 1 = auto - negotiation capable. 0 = not auto - negotiation capable. 2 0 ro link status 1 = link is up. 0 = link is down. 1 0 ro jabber test not sup port ed. 0 0 ro extended capable 1 = extended register capable. 0 = not extended register capable. phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 2 (regad = 0x2) - > phyid high bit default r/w description 15 ? 0 0x0022 ro phy id high word phy1 (phyad = 0x1) and phy2 (phyad = 0x2): register 3 (regad = 0x3) - > phyid low bit default r/w description 15 ? 0 0x1430 ro phy id low word phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 4 (regad = 0x4) - > auto - negotiation advertisement ability bit default r/w description 15 0 ro next page not sup port ed. 14 0 ro reserved 13 0 ro remote fault not sup port ed. 12 ? 11 0x0 ro reserved 10 1 rw pause ( flow control capability ) 1 = advertise pause ability. 0 = do not advertise pause capability. 9 0 rw reserved 8 1 rw advertise 100bt full - duplex 1 = advertise 100bt full - duplex capable. 0 = do not advertise 100bt full - duplex capability. 7 1 rw advertise 100bt half - duplex 1= advertise 100bt half - duplex capable. 0 = do not advertise 100bt half - duplex capability.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 231 revision 1.0 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 4 (regad = 0x4) - > auto - negotiation advertisement ability (continued) bit default r/w description 6 1 rw advertise 10bt full - duplex 1 = advertise 10bt full - duplex capable. 0 = do not advertise 10bt full - duplex capability. 5 1 rw advertise 10bt half - duplex 1 = advertise 10bt half - duplex capable. 0 = do not advertise 10bt half - duplex capability. 4 ? 0 0x01 ro selector field 802.3 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 5 (regad = 0x5) - > auto - negotiation link partner ability bit default r/w description 15 0 ro next page not sup port ed. 14 0 ro lp ack not sup port ed. 13 0 ro remote fault not sup port ed. 12 ? 11 0x0 ro reserved 10 0 ro pause link partner pause capability. 9 0 ro reserved 8 0 ro advertise 100bt full - duplex link partner 100bt full capability. 7 0 ro advertise 100bt half - duplex link partner 100 half capability. 6 0 ro advertise 10bt full - duplex link partner 10bt full capability. 5 0 ro advertise 10bt half - duplex link partner 10bt half capability. 4 ? 0 0x01 ro reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 232 revision 1.0 phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 29 (regad = 0x1d) - > linkmd control and status bit default r/w description 15 0 rw/sc (self - clear) cable diagnostic test enable 1 = cable diagnostic test is enabled. it is self - cleared after the test is done. 0 = indicates that the cable diagnostic test has completed and the status information is valid for read. 14 ? 13 0x0 ro cable diagnostic test results [00] = normal condition. [01] = open condition detect ed in the cable. [10] = short condition detected in the cable. [11] = cable diagnostic test has failed. 12 ? ro cdt 10m short 1 = less than 10m short. 11 ? 9 0x0 ro reserved 8 ? 0 0x000 ro cdt_fault_count distance to the fault. the distance is approximately 0.4m*cdt_fault_count. phy1 (phyad = 0x1) and phy2 (phyad = 0x2): reg. 31 (regad = 0x1f) - > phy special control and status bit default r/w description 15 ? 6 0x000 ro reserved 5 0 ro polarity reverse 1 = polarity is reversed. 0 = polarity is not reversed. 4 0 ro mdi - x status 0 = mdi 1 = mdi - x 3 0 rw force link 1 = force link pass. 0 = normal operation. 2 1 rw enable energy efficient ethernet (eee) on 10bte 1 = disable 10bte. 0 = enable 10bte. 1 0 rw remote (near - end) loopback 1 = perform remote loopback at port 1's phy (rxp1/rxm1 - > txp1/txm1) port 2's phy (rxp2/rxm2 - > txp2/txm2) 0 = normal operation 0 0 rw reserved
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 233 revision 1.0 management information base ( mib ) counters the ksz8463 provides 34 mib counters for each port . these counters are used to monitor the port activity for network management. the mib counters are formatted ?per port ? and ?all port s dropped packet? as shown in table 23 . table 23. format o f per - port mib counters bit name r/w description default 31 overflow ro 1 = counter overflow. 0 = no counter overflow. 0 30 count v alid ro 1 = counter value is valid. 0 = counter value is not valid. 0 29 ? 0 counter v alues ro counter value (read clear) 0x00000000 ?per p ort ? mib counters are read using indirect memory access. the base address offsets and address ranges for all three port s are: port 1, base address is 0x0 0 and range is from 0x00 to 0x1f . port 2, base address is 0x2 0 and range is from 0x20 to 0x3f . port 3 (host mii/rmii), base address is 0x4 0 and range is from 0x40 to 0x5f. ?per port? mib counters are read using indirect access control in the iacr register (0x030 ? 0x031) and the indirect access data registers in iadr4[15:0], iadr5[31:16] (0x02c ? 0x02f ). the port 1 mib counters address memory offset as in table 24 .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 234 revision 1.0 table 24. port 1 mib counters ? indirect memory offset offset counter name description 0x0 rxloprioritybyte rx lo - priority (default) octet count including bad packets . 0x1 rxhiprioritybyte rx hi - priority octet count including bad packets . 0x2 rxundersizepkt rx undersize packets with good crc . 0x3 rxfragments rx fragment packets with bad crc, symbol errors or alignment errors . 0x4 rxoversize rx oversize packets with good crc ( maximum : 2000 bytes) . 0x5 rxjabbers rx packets longer than 1522 bytes with either crc errors, alignment errors, or symbol errors (depends on max packet size setting) . 0x6 rxsymbolerror rx packets w/ invalid data symbol and legal packet size. 0x7 rxcrcerror rx packets within (64,1522) bytes w/ an integral number of bytes and a bad crc (upper limit depends on maximum packet size setting) . 0x8 rxalignmenterror rx packets within (64,1522) bytes w/ a non - integral number of bytes and a bad crc (upp er limit depends on maximum packet size setting) . 0x9 rxcontrol8808pkts number of mac control frames received by a port with 88 - 08h in ethertype field. 0xa rxpausepkts number of pause frames received by a port . pause frame is qualified with ethertype (88 - 08h), da, control opcode (00 - 01), data length (64b minimum ), and a valid crc . 0xb rxbroadcast rx good broadcast packets (not including error broadcast packets or valid multicast packets) . 0xc rxmulticast rx good multicast packets (not including mac control frames, error multicast packets or valid broadcast packets) . 0xd rxunicast rx good u nicast packets . 0xe rx64octets total rx packets (bad packets included) that were 64 octets in length . 0xf rx65to127octets total rx packets (bad packets included) that are between 65 and 127 octets in length . 0x10 rx128to255octets total rx packets (bad packets included) that are between 128 and 255 octets in length . 0x11 rx256to511octets total rx packets (bad packets included) that are between 256 and 511 octets in length . 0x12 rx512to1023octets total rx packets (bad packets included) that are between 512 and 1023 octets in length . 0x13 rx1024to2000octets total rx packets (bad packets included) that are between 1024 and 2000 octets in length (upper limit depends on max packet size setting) . 0x14 txloprioritybyte tx lo - priority good octet count, including pause packets . 0x15 txhiprioritybyte tx hi - priority good octet count, including pause packets . 0x16 txlatecollision the number of times a collision is detected later than 512 bit - times into the tx of a packet . 0x17 txpausepkts number of pause frames transmitted by a port . 0x18 txbroadcastpkts tx good broadcast packets (not including error broadcast or valid multicast packets) . 0x19 txmulticastpkts tx good multicast packets (not including error multicast packets or valid broadcast packets) . 0x1a txunicastpkts tx good u nicast packets . 0x1b txdeferred tx packets by a port for which the 1st tx attempt is delayed due to the busy medium . 0x1c txtotalcollision tx total collision, half duplex only . 0x1d txexcessivecollision a count of frames for which tx fails due to excessive collisions . 0x1e txsinglecollision successfully tx frames on a port for which tx is inhibited by exactly one collision . 0x1f txmultiplecollision successfully tx frames on a port for which tx is inhibited by more than one collision .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 235 revision 1.0 table 25. "all port s dropped packet" mib counter format bit default r/w description 30 ? 16 ? n/a reserved 15 ? 0 0x0000 ro counter value note : ?all port s dropped packet? mib counters do not indicate overflow or validity; therefore, the application must keep track of overflow and valid conditions. ?all port s dropped packet? mib counters are read using indirect memory access. the address offsets for these counters are in table 26 . table 26. "all port s dropped packet" mib counters - indirect memory offsets offset counter name description 0x100 port 1 tx drop packets tx packets dropped due to lack of resources 0x101 port 2 tx drop packets tx packets dropped due to lack of resources 0x102 port 3 tx drop packets tx packets dropped due to lack of resources 0x103 port 1 rx drop packets rx packets dropped due to lack of resources 0x104 port 2 rx drop packets rx packets dropped due to lack of resources 0x105 port 3 rx drop packets rx packets dropped due to lack of resources examples : 1. mib counter read (read port 1 ?rx64octets? counter at indirect address offset 0x0e) write to reg. iacr with 0x1c0e (set indirect address and trigger a read mib counters operation) then: read reg. iadr5 (mib counter value [31:16]) // if bit [31] = ?1?, there was a counter overflow // if bit [30] = ?0?, restart (re - read) from this register read reg. iadr4 (mib counter value [15:0]) 2. mib counter read (read port 2 ?rx64octets? counter at indirect address offset 0x2e) write to reg. iacr with 0x1c2e (set indirect address and trigger a read mib counters operation) then: read reg. iadr5 (mib counter value [31:16]) // if bit [31] = ?1?, there was a counter overflow // if bit [30] = ?0?, restart (re - read) from this register read reg. iadr4 (mib counter value [15:0]) 3. mib counter read (read ? port 1 tx drop packets? counter at indirect address offset 0x100 ) write to reg. iacr with 0x1d00 (set indirect address and trigger a read mib count ers operation) then: read reg. iadr4 (mib counter value [15:0]) additional mib information ?per port? mib counters are designed as ?read clear?. that is, these counters will be cleared after they are read. ? all port s dropped packet ? mib counters are not cl eared after they are accessed. the application needs to keep track of overflow and valid conditions on these counters.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 236 revision 1.0 static mac address table the ksz8463 sup port s both a static and a dynamic mac address table. in response to a dest ination address (da) look up, the ksz8463 searches both tables to make a packet forwarding decision. in response to a source address (sa) look up, only the dynamic table is searched for aging, migration and learning purposes. the static da look up resul t takes precedence over the dynamic da look up result. if there is a da match in both tables, the result from the static table is used. these entries in the static table will not be aged out by the ksz8463. table 27. static mac table format (8 entries) bit default value r/w description 57 ? 54 0000 rw fid filter vlan id - identifies one of the 16 active vlans. 53 0 r/w use fid 1 = specifies the use of fid+mac for static table look up. 0 = speci fies only the use of mac for static table look up. 52 0 r/w override 1 = overrides the port setting transmit enable = ?0? or receive enable = ?0? setting. 0 = specifies no override. note : the override bit also allows usage (turns on the entry) even if the valid bit = ?0?. 51 0 r/w valid 1 = specifies that this entry is valid, and the look up result will be used. 0 = specifies that this entry is not valid. 50 ? 48 000 r/w forwarding port s these 3 bits control the forwarding port (s): 000 = no forward. 001 = forward to port 1. 010 = forward to port 2. 100 = forward to port 3. 011 = forward to port 1 and port 2. 110 = forward to port 2 and port 3. 101 = forward to port 1 and port 3. 111 = broadcasting (excluding the ingress port ). 47 ? 0 0 r/w mac address 48- bit mac address
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 237 revision 1.0 static mac table lookup examples: 4. static address table read (read the second entry at indirect address offset 0x01) write to reg. iacr with 0x1001 (set indirect address and trigger a read static mac table operation) then: read reg. iadr3 (static mac table bits [57:48]) read reg. iadr2 (static mac table bits [47:32]) read reg. iadr5 (static mac table bits [31:16]) read reg. iadr4 (static mac table bits [15:0]) 5. static address table write (write the eighth entry at indirect address offset 0x07) write to reg. iadr3 (static mac table bits [57:48]) write to reg. iadr2 (static mac table bits [47:32]) write to reg. iadr5 (static mac table bits [31:16]) write to reg. iadr4 (static mac table bits [15:0]) write to reg. iacr with 0x0007 (set indirect address and trigge r a write static mac table operation)
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 238 revision 1.0 dynamic mac address table the dynamic mac a ddress is a read - only table. table 28. dynamic mac address table format (1024 entries) bit default value r/w description 71 ro data not ready 1 = specifies that the entry is not ready, continue retrying until bit is set to ?0?. 0 = specifies that the entry is ready. 70 ? 67 ro reserved 66 1 ro mac empty 1 = specifies that there is no valid entry in the table 0 = specifies that there are valid entries in the table 65-56 0x000 ro number of valid entries indicates how many valid entries in the table. 0x3ff means 1 k entries. 0x001 means 2 entries. 0x000 and bit [66] = ?0? means 1 entry. 0x000 and bit [66] = ?1? means 0 entry. 55 ? 54 ro times tamp specifies the 2 - bit counter for internal aging. 53 ? 52 00 ro source port identifies the source port where fid+mac is learned: 00 = port 1 01 = port 2 10 = port 3 51 ? 48 0x0 ro fid specifies the filter id. 47 ? 0 0x0000_0000_0000 ro mac address specifies the 48 - bit mac a ddress. dynamic mac address lookup example 1. dynamic mac address table read (read the first entry at indirect address offset 0 and retrieve the mac table size) write to reg. iacr with 0x1800 (set indirect address and trigger a read dynamic mac address table operation) then : read reg. iadr1 (dynamic mac table bits [71:64]) // if bit [71] = ?1?, restart (reread) from this register read reg. iadr3 (dynamic mac table bits [63:48]) read reg. iadr2 (dynamic mac table bits [47:32]) rea d reg. iadr5 (dynamic mac table bits [31:16]) read reg. iadr4 (dynamic mac table bits [15:0])
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 239 revision 1.0 vlan table the ksz8463 uses the vlan table to perform look - ups. if 802.1q vlan mode is enabled (sgcr2[15]), this table will be used to retrieve the vlan informa tion that is associated with the ingress packet. this information includes fid (filter id), vid (vlan id), and vlan membership as described in table 29 : table 29. vlan table format (16 entries) bit default value r/w description 19 1 rw valid 1 = specifies that this entry is valid, the look up result will be used. 0 = specifies that this entry is not valid. 18 ? 16 111 r/w membership specifies which port s are members of the vlan. if a da look up fails (no match in both static and dynamic tables), the packet associated with this vlan will be forwarded to port s specified in this field. for example: ?101? means port 3 and port 1 are in this vlan. 15 ? 12 0x0 r/w fid specifies the filter id. the ksz8463 sup port s 16 active vlans represented by these four bit fields. the fid is the mapped id. if 802.1q vlan is enabled, the look up will be based on fid+da and fid+sa. 11 ? 0 0x001 r/w vid specifies the ieee 802.1q 12 bits vlan id. if 802.1q vlan mode is enabled, then ksz8463 will assign a vid to every ingress packet. if the packet is untagged or tagged with a null vid, then the packet is assigned with the default port vid of the ingress port . if the packet is tagged with non - null vid, then vid in the tag will be used. the look up process will start from the vlan table look up. if the vid is not valid, then packet will be dropped and no address learning will take place. if the vid is valid, then fid is retrieved. the fid+da and fid+sa lookups are performed. the fid+da look up determines the forwarding port s. if fid+da fails, then the packet will be broadcast to all the members (excluding the ingress port ) of the vlan. if fid+sa fails, then the fid+sa will be learned. vlan table lookup examples 1. vlan table read (read the third entry, at the indirect address offset 0x02) write to reg. iacr with 0x1402 (set indirect address and trigger a read vlan table operation) then: read reg. iadr5 (vlan table bits [19:16]) read reg. iadr4 (vlan table bits [15:0]) 2. vlan table write (write the seventh entry, at the indirect address offset 0x06) write to reg. iadr5 (vlan table bits [19:16]) write to reg. iadr4 (vlan table bits [15:0]) write to reg. iacr with 0x1406 (set indirect address and trigger a read vlan table operation)
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 240 revision 1.0 absolute maximum ratings ( 4 ) supply vol tage (vdd_a3.3, vdd_io) ......... ? 0.5v to + 5 .0v supply voltage (vdd_al, vdd_l) .............. ? 0.5v to +1.8v input voltage (all inputs) .............................. ? 0.5v to + 5 .0v output voltage (all outputs) ........................ ? 0.5v to + 5 .0v lead temperature (soldering, 20s) ............................ 260c storage temperature (t s ) ......................... ? 65c to +150c maxi mum junction temperature (t j ) ....................... +125c hbm esd rating ........................................................... 2kv operating ratings ( 5 ) supply voltage vdd_a3.3 ...................................... +3.1 35 v to +3. 46 5v vdd_l, vdd_al , vdd_col .............. +1.25v to +1.4v vdd_io (3.3v) ............................... +3.1 35 v to +3. 46 5v vdd_io (2.5v) ............................... +2.3 7 5v to +2.6 2 5v vdd_io (1.8v) ................................... +1.7 1 v to +1. 8 9v ambient operating temperature (t a ) industrial (mli/rli/fmli/frli) ............. ? 40c to +85c thermal resistance (6) junction - to - ambient ( ja ) ................................... 49 c/w junction - to - case ( jc ) ....................................... 19c/w electrical characteristics ( 7 ) symbol condition parameter/symbol min. typ. max. unit s supply current for 100base - tx operation (internal low - voltage regulator on , mii mac mode , vdd_a3.3 = 3.3v, vdd_io = 3.3v) ( 7 , 8 ) 100% traffic on both port s i vdd_a3.3 46 ma i vdd_io 98 pdiss device 4 76 mw port s 1 and 2 powered down (p1cr4, p2cr4 bit[11] = ?1?) i vdd_a3.3 4.5 ma i vdd_io 74 pdiss device 259 mw port s 1 and 2 not connected, u sing edpd feature (pmctrl bits[1:0] = ?01?) i vdd_a3.3 5 .3 ma i vdd_io 73 pdiss device 260 mw port s 1 and 2 connected, no traffic, u sing eee feature i vdd_a3.3 5.9 ma i vdd_io 74 pdiss device 264 mw soft power -d own mode (pmctrl bits[1:0] = ?10?) i vdd_a3.3 1.1 ma i vdd_io 3.2 pdiss device 14 mw hardware power -d own mode while the pwdrn pin ( pin 17) is held low. ( 9 ) i vdd_a3.3 0.1 ma i vdd_io 1.3 pdiss device 4 .6 mw notes: 4. exceeding the absolute maximum rating s may damage the device. 5. the device is not guaranteed to function outside its operating rating. unused inputs must always be tied to an appropriate logic voltage level (g round to vdd_io) . 6. no (hs) heat spreader in this package. the jc / ja is under air velocity 0m/s. 7. i vdd_a3.3 measured at pin 9. i vdd_io measured at pins 21, 30, and 56. i vdd_al measured at pin s 6 and 16 . i vdd_dl measured at pins 4 0 and 5 1 . 8. t a = 25c. specification for packaged product only. 9. for pwrdn pin ( pin 17 ) , the operating value of v ih is lower than the other cmos input pins. it is not dependent on vdd_io.
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 241 revision 1.0 electrical characteristics ( 7 ) (continued) symbol condition parameter/symbol min. typ. max. unit s supply current for 100base - tx operation ( internal low - voltage regulator off , mii phy mode , vdd_a3.3 and vdd_io = 3.3v ; v dd_l, vdd_al and vdd_col = 1.4v ) ( 7 , 8 ) 100% traffic on both port s i vdd_a3.3 46 ma i vdd_io 21 i vdd_al + i vdd_dl 84 pdiss device 328 mw port s 1 and 2 powered down (p1cr4, p2cr4 bit[11] = ?1?) i vdd_a3.3 3.8 ma i vdd_io 15.2 i vdd_al + i vdd_dl 71 pdiss device 155 mw port s 1 and 2 not connected, u sing edpd feature (pmctrl bits[1:0] = ?01?) i vdd_a3.3 4 .6 ma i vdd_io 1 5.1 i vdd_al + i vdd_dl 6 9 pdiss device 155 mw port s 1 and 2 connected, no traffic, u sing eee feature i vdd_a3.3 5.2 ma i vdd_io 15.4 i vdd_al + i vdd_dl 70 pdiss device 1 59 mw soft power -d own mode (pmctrl bits[1:0] = ?10?) i vdd_a3.3 0. 1 ma i vdd_io 2.1 i vdd_al + i vdd_dl 1.4 pdiss device 9 mw hardware power -d own mode while the pwdrn pin ( pin 17) is held low. ( 9 ) i vdd_a3.3 0. 1 ma i vdd_io 2.1 i vdd_a l + i vdd_dl 1.2 pdiss device 9 mw supply current for 10base - t operation (internal low - voltage regulator on , mii mac mode , vdd_a3.3 = 3.3v, vdd_io = 3.3v) ( 7 , 8 ) 100% traffic on both port s i vdd_a3.3 51 ma i vdd_io 78 pdiss device 4 25 mw link, no traffic on both port s i vdd_a3.3 19.2 ma i vdd_io 72 pdiss device 302 mw
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 242 revision 1.0 electrical characteristics ( 7 ) (continued) symbol condition parameter/symbol min. typ. max. unit s supply current for 10base - t operation (internal low - voltage regulator off , mii phy mode , vdd_a3.3 and vdd_io = 3.3v ; v dd_l, vdd_al and vdd_col = 1.4v ) ( 7 , 8 ) 100% traffic on both port s i vdd_a3.3 50 ma i vdd_io 15.7 i vdd_al + i vdd_dl 71 pdiss device 315 mw link, no traffic on both port s i vdd_a3.3 19 ma i vdd_io 15.3 i vdd_al + i vdd_dl 69 pdiss device 212 mw internal voltage regulator output voltage v ldo output voltage at vdd_l vdd_io = 2.5v or 3.3v; internal regulator enabled; measured at pins 40 and 51 1.32 v cmos inputs (vdd_io = 3.3v/2.5v/1.8v) v ih input high voltage 2.1/1.7/1.3 v v il input low voltage 0.9/0.9/0.6 v i in input current v in = gnd ~ vdd_io ? 10 10 a x1 crystal/osc input pin v ih input high voltage vdd_a3.3 = 3.3v , vdd_io = any 2.1 v v il input low voltage vdd_a3.3 = 3.3v , vdd_io = any 0.9 v i in input current 10 a pwrdn input ( 9 ) v ih input high voltage vdd_a3.3 = 3.3v , vdd_io = any 1 .1 v v il input low voltage vdd_a3.3 = 3.3v , vdd_io = any 0. 3 v fxsd input v ih input high voltage vdd_a3.3 = 3.3v , vdd_io = any 2 .1 v v il input low voltage vdd_a3.3 = 3.3v , vdd_io = any 1.2 v cmos outputs (vdd_io = 3.3v/2.5v/1.8v) v oh output high voltage i oh = ? 8ma 2.4/1.9/1.5 v v ol output low voltage i ol = 8ma 0.4/0.4/0.2 v |i oz | output tri - state leakage 10 a
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 243 revision 1.0 electrical characteristics ( 7 ) (continued) symbol condition parameter/symbol min. typ. max. unit s 100 base - tx transmit ( measured differentially after 1:1 transformer ) v o peak differential output voltage 100 ? termination on the differential output 0.95 1.05 v v imb output voltage imbalance 100 ? termination on the differential output 2 % t r, / t f rise/fall time 3 5 ns rise/fall time imbalance 0 0.5 ns duty cycle distortion 0.25 ns overshoot 5 % v set reference voltage of iset (using 6.49k ? ? 1% resister 0.65 v output jitter peak -to - peak 0.7 1.4 ns 10 base - t receive v sq squelch threshold 5mhz square wave 400 mv 10b ase - t transmit ( measured differentially after 1:1 transformer ) v p peak differential output voltage 100 ? termination on the differential output 2.2 2.5 2.8 v jitter added 100 ? termination on the differ ential output (p eak -to - peak) 1.8 3.5 ns t r , t f rise/fall time 25 ns led outputs i led output drive current each led pin (p1/2led0, p1/2led1) 8 ma i/o pin internal pull - up and pull - down effective resistance r1.8pu i/o pin effective pull - up resistance vdd_io = 1.8v 57 100 187 k? r1.8pd i/o pin effective pull - down resistance 55 100 190 r2.5pu i/o pin effective pull - up resistance vdd_io = 2.5v 37 59 102 k? r2.5pd i/o pin effective pull - down resistance 35 60 110 r3.3pu i/o pin effective pull - up resistance vdd_io = 3.3v 29 43 70 k? r3.3pd i/o pin effective pull - down resistance 27 43 76
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 244 revision 1.0 timing specifications mii transmit timing in mac mode this timing illustrates a write operation from the ksz8463 to a phy or other device while operating the ksz8463 in mac mode. figure 22 . mii transmit timing in mac mode table 30. mii transmit timing parameters in mac mode timing parameter description min. typ. max. unit t p (100bt/10bt) rx_clk period 40/400 ns t wl (100bt/10bt) rx_clk pulse width low 20/200 ns t wh (100bt/10bt) rx_clk pulse width high 20/200 ns t od rx_dv, rxd[3:0] output delay from rising edge of rx_clk 16 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 245 revision 1.0 mii receive timing in mac mode this timing illustrates a read operation by the ksz8463 from a phy or other device while operating the ksz8463 in mac mode. figure 23 . mii receive timing in mac mode table 31. mii receive timing parameters in mac mode timing parameter description min . typ . max . unit t p (100bt/10bt) tx_clk period 40/400 ns t wl (100bt/10bt) tx_clk pulse width low 20/200 ns t wh (100bt/10bt) tx_clk pulse width high 20/200 ns t su1 txd[3:0] setup time to rising edge of tx_clk 10 ns t su2 tx_en, tx_er setup time to rising edge of tx_clk 10 ns t hd1 txd[3:0] hold time from rising edge of tx_clk 10 ns t hd2 tx_en, tx_er hold time from rising edge of tx_clk 10 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 246 revision 1.0 mii receive timing in phy mode figure 24 . mii receive timing in phy mode table 32. mii receive timing parameters in phy mode timing parameter description min . typ . max . unit t p (100bt/10bt) rx_clk period 40/400 ns t wl (100bt/10bt) rx_clk pulse width low 20/200 ns t wh (100bt/10bt) rx_clk pulse width high 20/200 ns t od rx_dv, rxd[3:0] output delay from rising edge of rx_clk 20 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 247 revision 1.0 mii transmit timing in phy mode figure 25 . mii transmit timing in phy mode table 33. mii transmit timing parameters in phy mode timing parameter description min . typ . max . unit t p (100bt/10bt) tx_clk period 40/400 ns t wl (100bt/10bt) tx_clk pulse width low 20/200 ns t wh (100bt/10bt) tx_clk pulse width high 20/200 ns t su1 txd[3:0] setup time to rising edge of tx_clk 10 ns t su2 tx_en, tx_er setup time to rising edge of tx_clk 10 ns t hd1 txd[3:0] hold time from rising edge of tx_clk 0 ns t hd2 tx_en, tx_er hold time from rising edge of tx_clk 0 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 248 revision 1.0 reduced mii (rmii) timing figure 26 . rmii transmit timing figure 27 . rmii receive timing table 34. rmii timing parameters timing parameter description min . typ . max . unit t cyc clock cycle 20 ns t 1 setup time 4 ns t 2 hold time 2 ns t od output delay 7 9 13 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 249 revision 1.0 miim (mdc/mdio) timing figure 28 . miim (mdc/mdio) timing table 35. mdc/mdio timing parameters timing parameter description min . typ . max . unit t p mdc period 400 ns t od output delay 200 ns t su mdio setup time to rising edge of mdc 10 ns t hd mdio hold time from rising edge of mdc 5 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 250 revision 1.0 spi input and output timing figure 29 . spi interface data input timing figure 30 . spi interface data output timing table 36. spi timing parameters timing parameter description min. typ. max. unit f sclk spi_sclk clock frequency 50 mhz t 1 spi_csn active setup time 8 ns t 2 spi_di data input setup time 3 ns t 3 spi_di data input hold time 3 ns t 4 spi_csn active hold time 8 ns t 5 spi_csn disable high time 8 ns t 6 spi_sclk falling edge to spi_do data output valid 2 9 ns t 7 spi_csn inactive to spi_do data output invalid 1 ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 251 revision 1.0 auto - negotiation timing figure 31 . auto - negotiation timing table 37. auto - negotiation timing parameters timing parameter description min. typ. max. unit t btb flp burst to flp burst 8 16 24 ms t flpw flp burst width 2 ms t pw clock/data pulse width 100 ns t ctd clock pulse to data pulse 55.5 64 69.5 s t ctc clock pulse to clock pulse 111 128 139 s number of clock/data pulses per burst 17 33
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 252 revision 1.0 trigger output unit and timestamp input unit timing the timing information in figure 32 provides details and constraints on various timing relationships within the twelve trigger output units and the timestamp input units . figure 32 . trigger output u nit and timestamp input unit timing
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 253 revision 1.0 table 38. trigger output unit and timestamp input unit timing parameters timing parameter description min. typ. max. unit trigger output unit timing [cascade mode} t casp1 in cascade mode for trigx_cfg_1[6:4] = 100, or 101, or 110 (neg. edge, pos. edge, and shift reg. output signals). minimum time between start of one tou and the start of another tou cascaded on the same gpio pin. 80 ? ? ns t casp2 in cascade mode for trigx_cfg_1[ 6:4] = 010, 011, 100, or 101 (neg. pulse, pos. pulse, neg. periodic, and pos. periodic output signals). minimum time between start of one tou and the start of another tou cascaded on the same gpio pin. 120 ? ? ns t cyccasp in cascade mode for trigx_cfg_ 1[6:4] = 010, and 011 (neg. pulse , pos. pulse output signals). in cascade mode, the cycle time of the trigger output unit operating in the indicated modes. 80 32 + p width2 ns t cycnc1 in cascade mode for trigx_cfg_1[6:4] = 100 or 101 (neg. periodic , pos. periodic output signals). minimum cycle time for any trigger output unit operating in the indicated modes. 80 32 + p width2 ns t gap23 in cascade mode for trigx_cfg_1[6:4] = 010, and 011 (neg. pulse , pos. pulse output signals): minimum gap time req uired between end of period of first trigger output unit to beginning of output of 2 nd trigger output unit . 80 ? ? ns p width2 in cascade mode, the minimum low or high pulse width of the trigger output unit . 8 ? ? ns trigger output unit timing [non - cascade mode] t cycnc2 in non - cascade mode, the minimum cycle time for any trigger output unit . 80 32 + p width1 ns t pogap in non - cascade mode, the minimum time between the end of the generated pulse to the start of the next pulse. 32 ? ? ns p width1 in non - cascade mode, the minimum low or high pulse width of the trigger output unit . 8 ? ? ns timestamp input unit timing ip high allowable high time of an incoming digital waveform on any gpio pin 24 ? ? ns ip low in non - cascade mode, the minimum time between the end of the generated pulse to the start of the next pulse. 24 ? ? ns ip cyc in non - cascade mode, the minimum time between the end of the generated pulse to the start of the next pulse. 48 ? ? ns
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 254 revision 1.0 reset and power sequence timing the ksz8463 reset timing and power sequence requirements are summarized in figure 33 and table 39 . figure 33 . reset and power sequence timing table 39. reset and power sequence timing parameters ( 9 , 10, 11 ) timing parameter description min . max . unit tvr supply voltages rise time (m ust be monotonic) 0 s tsr stable supply voltages to de - assertion of reset 10 ms tcs strap - in pin configuration setup time 5 ns tch strap - in pin configuration hold time 5 ns trc de - assertion of reset to strap- in pin output 6 ns notes: 10. the recommended powering sequence is to bring up all voltages at the same time. however, if that cannot b e attained, then a recommended power - up sequence is to have the transceiver (vdd_a3.3) and digital i/os (vdd_io) v oltages power up before the low voltage core (vdd_al, vdd_l, and vdd_col) voltage , if an external low voltage core supply is used . there is no power sequence requirement between transceiver (vdd_a3.3) and digital i/os (vdd_io) power rails. the power - up waveforms should be monotonic for all supply voltages to the ksz8463 . 11. after the de - assertion of reset, it is recommended to wait a minimum of 100 s before starting programming of the device through any interface. 12. the recommended power - d own sequence is to have the low voltage core voltage power down first before powering down the transceiver and digital i/o voltages .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 255 revision 1.0 reset circuit guidelines figure 34 illustrates the recommended reset circuit for powering up the ksz8463 device if reset is triggered by the power supply. figure 34 . simple reset circuit figure 35 illustrates the recommended reset circuit for applications where reset is driven by another device (e.g., cpu or fpga). at por , r, c and d1 provide the necessary ramp rise time to reset the ksz8463 device. the rst_out_n from cpu/fpga prov ides the warm reset after power - up. figure 35 . recommended reset circuit for inte rfacing with a cpu/fpga output
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 256 revision 1.0 reference clock ? connection and selection the three different sources for a reference clock are shown in figure 36 . note that mii clocks are not discussed in this section. th e ksz8463 ml and ksz8463fml require an external 25mhz crystal attached to x1/x2, or a 25mhz oscillator attached to x1 . the ksz8463rl and ksz8463frl have two options for a reference clock, as determined by the strapping option on pin 41. the 25mhz option on x1/x2 is as described above. when the 50mhz option is selected, an external 50mhz clock is applied to the refclk_i pin, while x1 and x2 are unconnected . note that in the 25mhz mode, refclk_o must be enabled, and it must be externally connected to refclk_i. this is described in detail in table 17 . the resistor shown on x2 is optional and can be used to li mit current to the crystal if needed, depending on the specific crystal that is used. the maximum recommended value is 30 . figure 36 . input reference clock c onnection options selection of reference crystal table 40. typical reference crystal characteristics characteristics value unit s frequency 25 mhz frequency tolerance (maximum) 50 ppm effective series resistance (maximum) 50 ?
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 257 revision 1.0 selection of isolation transformers a 1:1 isolation transformer is required at the line interface. an isolation transformer with integrated common - mode choke is recommended for exceeding fcc requirements. table 41 gives recommended transformer characteristics. table 41. transformer selection criteria parameter value test condition turns ratio 1 ct : 1 ct open - circuit inductance (minimum) 350h 100mv, 100khz, 8ma leakage inductance (maximum) 0.4 h 1mhz (minimum) inter - winding capacitance (maximum) 12pf d.c. resistance (maximum) 0.9 ? insertion loss (maximum) ? 1.0db 100khz ? 100mhz hipot (minimum) 1500vrms table 42. qualified single port magnetics magnetic manufacturer part number auto mdi -x number of port pulse h1102 nl yes 1 pulse (low cost) h1260 yes 1 transpower hb726 yes 1 bel fuse s558 - 5999-u7 yes 1 delta lf8505 yes 1 lankom lf - h41s yes 1 tdk (mag jack) tla - 6t718 yes 1
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 258 revision 1.0 package information ( 13) and recommended landing pattern 64- pin 10mm 10mm lqfp note: 13. package information is correct as of the publication date. for updates and most current information, go to www.micrel.com .
micrel, inc. ksz8463ml/rl/fml/frl june 11, 2014 259 revision 1.0 micrel, inc. 2180 fortune drive san jose, ca 95131 usa tel +1 (408) 944 - 0800 fax +1 (408) 474-100 0 web http://www.micrel.com micrel makes no representations or warranties with respect to the accuracy or completeness of the information furnished in th is data sheet. this information is not intended as a warranty and micrel does not assume responsibility for its use. micrel reserves the right to change circuitry, specifications and descriptions at any time without notice. no license, whether express, implied, arising by estoppel or otherwise, to any intellectual property rights is granted by this document. except as provided in micrel?s terms and conditions of sale for such products, micrel assumes no liability whatsoever, and micrel disclaims any express or implied warranty relating to the sale and/or use of mic rel products including liability or warranties relating to fitness for a particular purpose, merchantability, or infringement of any patent, copyright or other intellectual property right . micrel products are not designed or authorized for use as componen ts in life support appliances, devices or systems where malfunction of a product can reasonably be expected to result in personal injury. life support devices or systems are devices or systems that (a) are intended for surgical implant into the body or (b) support or sustain life, and whose failure to perform can be reasonably expected to result in a significant injury to the use r. a purchaser?s use or sale of micrel products for use in life support appliances, devices or systems is a purchaser?s own risk a nd purchaser agrees to fully indemnify micrel for any damages resulting from such use or sale. ? 20 14 micrel, incorporated.


▲Up To Search▲   

 
Price & Availability of KSZ8463MLI-EVAL

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X